public WindowSwitchToolStripButton(BaseWindow associatedWindow) { InitializeComponent(); CheckOnClick = true; WindowValue = associatedWindow; Window.Activated += new EventHandler(Window_Activated); Window.Deactivate += new EventHandler(Window_Deactivate); Window.TextChanged += new EventHandler(Window_TextChanged); Window.Disposed += new EventHandler(Window_Disposed); Text = Window.Text.Split(" ".ToCharArray())[0]; }
private void QueryWindow_Input(BaseWindow sender, InputEventArgs args) { AssociatedConnection.BaseConnection.SendLine(String.Format("PRIVMSG {0} :{1}", BoundedUser.NickName, args.Line)); AddLine(String.Format("[{0:T}] <{1}> {2}", DateTime.Now, AssociatedConnection.BaseConnection.CurrentNick, args.Line)); }
void StatusWindow_Input(BaseWindow sender, InputEventArgs args) { if (AssociatedConnection.BaseConnection.IsConnected) AssociatedConnection.BaseConnection.SendLine(args.Line); }
public WindowOpenedEventArgs(BaseWindow window) { OpenedWindowValue = window; }