Exemplo n.º 1
0
 public static WordsForm GetForm()
 {
     if (Instance == null || Instance.IsDisposed)
     {
         Instance = new WordsForm();
     }
     return(Instance);
 }
Exemplo n.º 2
0
        private void BackToPreviousForm()
        {
            var form = WordsForm.GetForm();

            form.Left        = this.Left;
            form.Top         = this.Top;
            form.WindowState = this.WindowState;
            form.Show();
            this.Hide();
        }
Exemplo n.º 3
0
        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());
        }