Example #1
0
        private void WriteMinutesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // WeaonsFormMode formMode = WeaonsFormMode.AddWeeapons;
            IMTS_MINUTES.Forms.Minutes.Compila.WriteMinutes childForm = new IMTS_MINUTES.Forms.Minutes.Compila.WriteMinutes(1);
            childForm.MdiParent     = this;
            childForm.Text          = "WriteMinutes";// + childFormNumber++;
            childForm.StartPosition = FormStartPosition.CenterScreen;

            childForm.Show();
            // childForm.MdiParent.ActiveMdiChild.Close();
        }
Example #2
0
        private void ImportMinuteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (DialogResult.Yes == MessageBox.Show("Are you sure do you want unzip the file and clean?", "Rebuild minute", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning))
            {
                OpenFileDialog openFileDialog = new OpenFileDialog();
                openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
                openFileDialog.Filter           = "File zip (*.zip)|*.zip";
                if (openFileDialog.ShowDialog(this) == DialogResult.OK)
                {
                    string FileName = openFileDialog.FileName;
                    BLZip  blz      = new BLZip();
                    blz.UnzipFilenameInFolder(FileName);
                    MessageBox.Show("File Unzipped and project is clean, Minute Loaded");
                    IMTS_MINUTES.Forms.Minutes.Compila.WriteMinutes childForm = new IMTS_MINUTES.Forms.Minutes.Compila.WriteMinutes(0);
                    childForm.MdiParent   = this;
                    childForm.Text        = "WriteMinutes";// + childFormNumber++;
                    childForm.WindowState = FormWindowState.Maximized;

                    childForm.Show();
                }
            }
        }