Example #1
0
        private async void обучениеToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //UpdateResults();
            this.Visible = false;

            FormPicWhileDocsAreSaving formLoading = new FormPicWhileDocsAreSaving();

            formLoading.Visible = true;
            if (await TaskEx.Run(() => goSaveStudy()))
            {
                formLoading.Visible = false;
            }

            this.Visible = true;
        }
Example #2
0
        public async void saveResByClosing()
        {
            //UpdateResults();
            if (!resultsSaver.testsSaved || !resultsSaver.studySaved)
            {
                Visible = false;
                var formLoading = new FormPicWhileDocsAreSaving {
                    Visible = true
                };
                await goSaveAll();

                formLoading.Visible = false;
                Environment.Exit(0);
            }
            else
            {
                Environment.Exit(0);
            }
        }