示例#1
0
        private void OntxtMaxLostFocus(object sender, RoutedEventArgs e)
        {
            try
            {
                max           = Convert.ToInt32(txtMax.Text);
                MaxValue.Text = max.ToString();
            }
            catch
            {
                textEditorControl.DisplayStatusMessage(StatusTypes.Warning, Configurations.NumericSliderWarning, 3);
            }

            Logger.LogInfo("Slider-OntxtMinLostFocus", max.ToString());
        }
示例#2
0
 internal void DisplayPossibleErrors()
 {
     if (outputMessages.Count > 0)
     {
         ProtoCore.OutputMessage message = outputMessages[0];
         string display = string.Format("Line {0}, Column {1}: {2}",
                                        message.Line, message.Column, message.Message);
         textEditorControl.DisplayStatusMessage(StatusTypes.Info, display, 6);
     }
     else
     {
         textEditorControl.HideStatusMessage();
     }
 }