Esempio n. 1
0
        private void AddFileButton_Click(object sender, EventArgs e)
        {
            if (IsValidSource(FileBox.Text))
            {
                if (String.IsNullOrEmpty(OutputBox.Text))
                {
                    OutputBox.Text = Path.GetDirectoryName(FileBox.Text);
                }

                FileListBox.Items.Add(FileBox.Text);
                FileBox.Clear();
                RemoveFileButton.Enabled = true;
            }
        }
Esempio n. 2
0
 private void AddFileButton_Click(object sender, EventArgs e)
 {
     if (IsValidSource(FileBox.Text))
     {
         if (String.IsNullOrEmpty(OutputBox.Text))
         {
             OutputBox.Text = Path.GetDirectoryName(FileBox.Text);
         }
         // update the set-defaults button
         SetDefaultsDataType    = ReaderList.FullReaderList.identify(FileBox.Text);
         SetDefaultsButton.Text = "Use these settings next time I start MSConvertGUI with " + SetDefaultsDataType + " data";
         setToolTip(SetDefaultsButton, "Saves the current settings and uses them as the defaults next time you open " + SetDefaultsDataType + " data with MSConvertGUI.");
         // and add to the list
         FileListBox.Items.Add(FileBox.Text);
         FileBox.Clear();
         RemoveFileButton.Enabled = true;
     }
 }