Example #1
0
 private void OpenTimetable(Data data)
 {
     this.Cursor = Cursors.WaitCursor;
     FormTimetable childForm = new FormTimetable(data);
     childForm.MdiParent = this;
     childForm.Show();
     this.Cursor = Cursors.Default;
 }
Example #2
0
        private void OpenTimetable(Data data, int ot)
        {
            FormTimetable childForm = new FormTimetable(data);
            //childForm.MdiParent = this;
            childForm.FormBorderStyle = FormBorderStyle.None;
            childForm.WindowState = FormWindowState.Maximized;
            childForm.Show();
            ask_to_export();
            System.Threading.Thread.Sleep(500);

            if (expotchoice == 1)
            {
                capture_Image();
                childForm.Close();
                exportingtimetables(ot, data.Name);
                ask_to_open();
                if (expotchoiceopen == 1)
                {
                    opendirectorytimetables(ot);

                }
            }

            childForm.Close();
        }