public virtual void OnPersistentEditorResponse(EditorResponseEventArgs e) { if (this.PersistentEditorResponse != null) { this.PersistentEditorResponse(this, e); } }
protected void PersistentRespondToExe(string message, bool requiresUserAction) { EditorResponseEventArgs e = new EditorResponseEventArgs() { ResponseString = message, RequiresUserAction = requiresUserAction }; OnPersistentEditorResponse(e); }
protected void RespondToExe(EditorDescription description, bool requiresUserAction) { EditorResponseEventArgs e = new EditorResponseEventArgs() { ResponseString = description.ToString(), ResponseDescription = description, RequiresUserAction = requiresUserAction }; OnEditorResponse(e); }
static void HandleResponseFromClippy(object sender, EditorResponseEventArgs e) { Console.WriteLine(e.ResponseString); if(e.RequiresUserAction) Console.ReadKey(); }
protected void RespondToExe(string message, bool requiresUserAction) { EditorResponseEventArgs e = new EditorResponseEventArgs() { ResponseString = message, RequiresUserAction = requiresUserAction }; OnEditorResponse(e); }
public virtual void OnPersistentEditorResponse(EditorResponseEventArgs e) { if (this.PersistentEditorResponse != null) { this.PersistentEditorResponse(this, e); } }
private void HandleResponseFromClippy(object sender, EditorResponseEventArgs e) { MessageBox.Show(e.ResponseString, "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); }
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(); }
static void HandleResponseFromClippy(object sender, EditorResponseEventArgs e) { ((AClipEditor)sender).SourceData = e.ResponseString; }