void communicationWindow_InputKeyDown(object sender, IRCProviders.SerializableKeyEventArgs e) { if (InputKeyDown != null) { InputKeyDown(this, e.ToNew()); } }
internal static SerializableKeyEventArgs ToNew(this IRCProviders.SerializableKeyEventArgs args) { return(new SerializableKeyEventArgs { Alt = args.Alt, Control = args.Control, Handled = args.Handled, KeyCode = (Keys)args.KeyCode, KeyData = (Keys)args.KeyData, KeyValue = args.KeyValue, Modifiers = (Keys)args.Modifiers, Shift = args.Shift, SuppressKeyPress = args.SuppressKeyPress }); }