public static WordsForm GetForm() { if (Instance == null || Instance.IsDisposed) { Instance = new WordsForm(); } return(Instance); }
private void BackToPreviousForm() { var form = WordsForm.GetForm(); form.Left = this.Left; form.Top = this.Top; form.WindowState = this.WindowState; form.Show(); this.Hide(); }
static void Main() { //SetupManager.Initialize(); var checkInformation = SetupManager.IsFirstUse(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Form f = null; if (checkInformation) { f = new InformationForm(); } else { f = WordsForm.GetForm(); } Application.Run(f);//new CreateLessonForm()); }