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