private void formMain_Shown(object sender, EventArgs e)
{
if (radiobuttonStart.Checked)
{
listviewRouteFiles.Focus();
}
else if (radiobuttonReview.Checked)
{
listviewScore.Focus();
}
else if (radiobuttonControls.Checked)
{
listviewControls.Focus();
}
else if (radiobuttonOptions.Checked)
{
comboboxLanguages.Focus();
}
//TODO: Needs focus changing when packages tab is selected
formMain_Resize(null, null);
if (this.WindowState != FormWindowState.Maximized)
{
Size sss = this.ClientRectangle.Size;
System.Windows.Forms.Screen s = System.Windows.Forms.Screen.FromControl(this);
if ((double)this.Width >= 0.95 * (double)s.WorkingArea.Width | (double)this.Height >= 0.95 * (double)s.WorkingArea.Height)
{
this.WindowState = FormWindowState.Maximized;
}
}
radiobuttonStart.Focus();
// command line arguments
if (Result.TrainFolder != null)
{
if (checkboxTrainDefault.Checked) checkboxTrainDefault.Checked = false;
ShowTrain(false);
}
if (Result.RouteFile != null)
{
ShowRoute(false);
}
}