コード例 #1
0
ファイル: FolderManager.cs プロジェクト: ylc03/FQMTool
        private void closeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (jobFolder == null ) return;

            this.saveIfNeeded();
            jobFolder = null;
            this.refreshGUI();
        }
コード例 #2
0
ファイル: FolderManager.cs プロジェクト: ylc03/FQMTool
        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();
            }
        }