public void LoadFormConfiguration() { string tempString = string.Empty; ProgramConfiguraton.LoadFormParams(this, ConfigFormOption.Location | ConfigFormOption.Maximized | ConfigFormOption.Size); tempString = LocalConfiguration.LoadFormCustomParameter(this, "LinesCount"); if (!string.IsNullOrEmpty(tempString)) { int tempInt; if (int.TryParse(tempString, out tempInt)) { if (tSCBLinesCount.Items.Contains(tempInt)) { tSCBLinesCount.SelectedItem = tempInt; } } } LocalConfiguration.LoadControllerConfiguration(this, saController); }