コード例 #1
0
        private void InitializeTab1()
        {
            tbRawFileFolder.Text = Configures.GetAutoWizardRawFilePath();

            if (string.IsNullOrWhiteSpace(tbRawFileFolder.Text))
            {
                btnCopy.Enabled = false;
            }
        }
コード例 #2
0
        private void btnSelectFolder_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();

            folderBrowserDialog.Description         = "Select the raw files directory";
            folderBrowserDialog.ShowNewFolderButton = false;
            folderBrowserDialog.RootFolder          = Environment.SpecialFolder.MyComputer;
            folderBrowserDialog.SelectedPath        = Configures.GetAutoWizardRawFilePath();

            if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
            {
                tbRawFileFolder.Text = folderBrowserDialog.SelectedPath;
            }
        }