Exemplo n.º 1
0
 public virtual void OnPersistentEditorResponse(EditorResponseEventArgs e)
 {
     if (this.PersistentEditorResponse != null)
     {
         this.PersistentEditorResponse(this, e);
     }
 }
Exemplo n.º 2
0
        protected void PersistentRespondToExe(string message, bool requiresUserAction)
        {
            EditorResponseEventArgs e = new EditorResponseEventArgs()
            {
                ResponseString     = message,
                RequiresUserAction = requiresUserAction
            };

            OnPersistentEditorResponse(e);
        }
Exemplo n.º 3
0
        protected void RespondToExe(EditorDescription description, bool requiresUserAction)
        {
            EditorResponseEventArgs e = new EditorResponseEventArgs()
            {
                ResponseString      = description.ToString(),
                ResponseDescription = description,
                RequiresUserAction  = requiresUserAction
            };

            OnEditorResponse(e);
        }
Exemplo n.º 4
0
 static void HandleResponseFromClippy(object sender, EditorResponseEventArgs e)
 {
     Console.WriteLine(e.ResponseString);
     if(e.RequiresUserAction)
         Console.ReadKey();
 }
Exemplo n.º 5
0
 protected void RespondToExe(string message, bool requiresUserAction)
 {
     EditorResponseEventArgs e = new EditorResponseEventArgs()
     {
         ResponseString = message,
         RequiresUserAction = requiresUserAction
     };
     OnEditorResponse(e);
 }
Exemplo n.º 6
0
 public virtual void OnPersistentEditorResponse(EditorResponseEventArgs e)
 {
     if (this.PersistentEditorResponse != null)
     {
         this.PersistentEditorResponse(this, e);
     }
 }
Exemplo n.º 7
0
 private void HandleResponseFromClippy(object sender, EditorResponseEventArgs e)
 {
     MessageBox.Show(e.ResponseString, "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
 }
Exemplo n.º 8
0
 private void HandlePersistentResponse(object sender, EditorResponseEventArgs e)
 {
     if (_infoBox != null)
     {
         _infoBox.Close();
         _infoBox = null;
     }
     _infoBox = new PersistentInformation(e.ResponseString);
     _infoBox.StartPosition = FormStartPosition.CenterParent;
     _infoBox.Show();
 }
Exemplo n.º 9
0
 static void HandleResponseFromClippy(object sender, EditorResponseEventArgs e)
 {
     ((AClipEditor)sender).SourceData = e.ResponseString;
 }