Beispiel #1
0
 /// <summary>
 /// Creates new instance of event arguments
 /// </summary>
 /// <param name="displayer">Displayer that event happenes with</param>
 /// <param name="action">Type of action of event</param>
 public DisplayerCancelEventArgs(IDisplayer displayer, DisplayerAction action)
 {
     this.displayer = displayer;
     this.action    = action;
     controlType    = ControlType.Trivial;
 }
Beispiel #2
0
 /// <summary>
 /// Creates new instance of event arguments
 /// </summary>
 /// <param name="cancel">Should event be canceled by default</param>
 /// <param name="displayer">Displayer that event happenes with</param>
 /// <param name="action">Type of action of event</param>
 public DisplayerCancelEventArgs(bool cancel, IDisplayer displayer, DisplayerAction action) : base(cancel)
 {
     this.displayer = displayer;
     this.action    = action;
     controlType    = ControlType.Trivial;
 }