private void ExportMinuteToolStripMenuItem_Click(object sender, EventArgs e) { if (DialogResult.Yes == MessageBox.Show("Are you sure do you want export your work in zip file?", "Export files", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning)) { BLZip blz = new BLZip(); blz.ZipTabEsportabiliInZiPfile(); MessageBox.Show("File is zipped ready for export"); SaveFileDialog openFileDialog = new SaveFileDialog(); openFileDialog.InitialDirectory = Utils.getBasePathName; openFileDialog.Filter = "File zip (*.zip)|*.zip"; if (openFileDialog.ShowDialog(this) == DialogResult.OK) { } } }
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(); } } }