private void btnSingleton_Click(object sender, EventArgs e) { SingletonForm singletonForm = new SingletonForm(); this.Hide(); singletonForm.ShowDialog(); this.Show(); }
private static void openSingleton() { SingletonForm singletonForm = new SingletonForm(); singletonForm.ShowDialog(); }