private void BT_Options_Click(object sender, EventArgs e) { // Application.EnableVisualStyles(); // Application.SetCompatibleTextRenderingDefault(false); // Application.Run(new OptionsForm()); OptionsForm optionsForm = new OptionsForm(); optionsForm.Show(); }
public static OptionsForm GetSingletonInstance() { if(optionsFormSingleton == null) { lock (_syncRoot) { if (optionsFormSingleton == null) { optionsFormSingleton = new OptionsForm(); } } } return optionsFormSingleton; }