private void GenerateClassesClick(object sender, RoutedEventArgs e)
 {
     if (classBreakGenerator.ViewModel.ClassesCount > 1)
     {
         string validationError = GetValidationResult();
         if (String.IsNullOrEmpty(validationError))
         {
             var hasError = MvvmHelper.GetHasError(classBreakGenerator);
             if (hasError)
             {
                 System.Windows.Forms.MessageBox.Show(GisEditor.LanguageManager.GetStringResource("ClassBreakStyleAutoGenerateWindowvalueinvalidMessage"));
             }
             else
             {
                 DialogResult = true;
             }
         }
         else
         {
             System.Windows.Forms.MessageBox.Show(validationError, "Alert", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Information);
         }
     }
     else
     {
         System.Windows.Forms.MessageBox.Show(GisEditor.LanguageManager.GetStringResource("ClassBreakStyleAutoGenerateWindowlagerthanzeroMessage"), "Alert");
     }
 }
Ejemplo n.º 2
0
        private void OKClick(object sender, RoutedEventArgs e)
        {
            bool hasError = MvvmHelper.GetHasError(this);

            if (!hasError)
            {
                DialogResult = true;
            }
            else
            {
                MessageBox.Show("Please input valid spatial reference value.", "Invalid input value", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }