Example #1
0
 private void ChoosenFilesExtensionsTextBox_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (String.IsNullOrEmpty(ChoosenFilesExtensionsTextBox.Text))
     {
         DCS_ErrorProvider.SetError(ChoosenFilesExtensionsTextBox, ICloneLocalization.DCS_ChooseFilesExtensions_Empty);
         StatusLabel.Text = ICloneLocalization.DCS_ChooseFilesExtensions_Empty;
     }
     else
     {
         DCS_ErrorProvider.SetError(ChoosenFilesExtensionsTextBox, "");
         StatusLabel.Text = "";
     }
 }
Example #2
0
 private void ChooseLangComboBox_Validating(object sender, CancelEventArgs e)
 {
     if (ChooseLangComboBox.Items.Count == 0)
     {
         DCS_ErrorProvider.SetError(ChooseLangComboBox, ICloneLocalization.CMNMESS_PluginsNotAvailable);
         StatusLabel.Text = ICloneLocalization.CMNMESS_PluginsNotAvailable;
     }
     else
     {
         if (ChooseLangComboBox.SelectedItem == null)
         {
             DCS_ErrorProvider.SetError(ChooseLangComboBox, ICloneLocalization.CMNMESS_NoOnePluginChoosen);
             StatusLabel.Text = ICloneLocalization.CMNMESS_NoOnePluginChoosen;
         }
         else
         {
             DCS_ErrorProvider.SetError(ChooseLangComboBox, "");
             StatusLabel.Text = "";
         }
     }
 }
Example #3
0
 private void CodeLocationTextBox_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (String.IsNullOrEmpty(CodeLocationTextBox.Text))
     {
         DCS_ErrorProvider.SetError(CodeLocationTextBox, ICloneLocalization.DCS_ChooseFolderError_Empty);
         StatusLabel.Text = ICloneLocalization.DCS_ChooseFolderError_Empty;
     }
     else
     {
         if (Directory.Exists(CodeLocationTextBox.Text))
         {
             DCS_ErrorProvider.SetError(CodeLocationTextBox, "");
             StatusLabel.Text = "";
         }
         else
         {
             DCS_ErrorProvider.SetError(CodeLocationTextBox, ICloneLocalization.DCS_ChooseFolderError_NoneExist);
             StatusLabel.Text = ICloneLocalization.DCS_ChooseFolderError_NoneExist;
         }
     }
 }