private void closeToolStripMenuItem_Click(object sender, EventArgs e) { if (jobFolder == null ) return; this.saveIfNeeded(); jobFolder = null; this.refreshGUI(); }
private void newToolStripMenuItem_Click(object sender, EventArgs e) { this.folderBrowserDialog.ShowNewFolderButton = true; if (folderBrowserDialog.ShowDialog(this) == DialogResult.OK) { this.saveIfNeeded(); if (JobQualityFolder.ValidateNewPath(folderBrowserDialog.SelectedPath)) { jobFolder = new JobQualityFolder(folderBrowserDialog.SelectedPath); } else { FQMLog.Error(folderBrowserDialog.SelectedPath + " is not empty.", "Can't create job folder"); jobFolder = null; } this.refreshGUI(); } }