Example #1
0
 /// <summary>Closes down the ProcessingDialog that has been opened by ShowProcessingDialog() when its opened, otherwise nothing happens.</summary>
 private void CloseProcessingDialog()
 {
     if (pd != null)
     {
         pd.ProcessCancellingRequested -= OnProcessingDialog_Cancel;
         pd.Close();
         pd = null;
     }
 }
Example #2
0
        private void Initialization()
        {
            FileContentBox.SelectionChanged += FileContentBox_SelectionChanged;
            FromNumericUpDown.Maximum        = int.MaxValue;
            FromNumericUpDown.Minimum        = 0;
            ToNumericUpDown.Maximum          = int.MaxValue;
            ToNumericUpDown.Minimum          = 0;
            currentLine = new LineBounds();
            pd          = new ProcessingDialog();

            file = new FileInfo();

            // GUI Initialization
            FileTextBox.Text    = SelectFileMsg;
            FileContentBox.Text = NoFileSelectedMsg;
            SetCurrentlyOpenedLabel("None");
        }
Example #3
0
 /// <summary>Shows the ProcessingDialog</summary>
 /// <remarks>Is intended to be called when the processing starts and no other ProcessingDialog is opened yet.</remarks>
 private void ShowProcessingDialog()
 {
     pd = new ProcessingDialog();
     pd.ProcessCancellingRequested += OnProcessingDialog_Cancel;
     pd.ShowDialog();
 }