Exemplo n.º 1
0
        /// <summary>
        /// Invoked to indicate there was an error.  Displays the
        /// error form as a dialog
        /// </summary>
        /// <param name="message">error message</param>
        /// <param name="enableConfigure">should the config button be enabled</param>
        public void OnError(String message, bool enableConfigure = true)
        {
            var errorForm = new ActuatorErrorForm
            {
                EnableConfigure = enableConfigure,
                Caption         = "ERROR",
                SourceActuator  = this.SourceActuator,
                Prompt          = message
            };

            errorForm.ShowDialog();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Invoked to indicate there was an error.  Displays the 
 /// error form as a dialog
 /// </summary>
 /// <param name="message">error message</param>
 /// <param name="enableConfigure">should the config button be enabled</param>
 public void OnError(String message, bool enableConfigure = true)
 {
     var errorForm = new ActuatorErrorForm
     {
         EnableConfigure = enableConfigure,
         Caption = "ERROR",
         SourceActuator = this.SourceActuator,
         Prompt = message
     };
     errorForm.ShowDialog();
 }