Represents a graphical visualisation of an IrcConnection.
An instance of this class will automatically create windows for the different channels and querys from an IrcConnection.
예제 #1
0
파일: BaseWindow.cs 프로젝트: hapm/IrcShark
 public BaseWindow(GUIIrcConnection baseCon)
 {
     InitializeComponent();
     AssociatedConnectionValue = baseCon;
     MdiParent = AssociatedConnection.MainForm;
     InputBuffer = new List<String>();
 }
예제 #2
0
 public DebugWindow(GUIIrcConnection baseCon)
     : base(baseCon)
 {
     InitializeComponent();
     AssociatedConnection.BaseConnection.LineReceived += new IrcSharp.LineReceivedEventHandler(Client_LineReceived);
     MdiParent = baseCon.MainForm;
     Disposed += new EventHandler(DebugWindow_Disposed);
 }
예제 #3
0
 public WindowSwitchToolStrip(GUIIrcConnection con)
 {
     InitializeComponent();
     ConnectionValue = con;
     StatusButtonValue = new WindowSwitchToolStripButton(con.Status);
     Items.Add(StatusButtonValue);
     Connection.WindowOpened += new GUIIrcConnection.WindowOpenedEventHandler(Connection_WindowOpened);
 }
예제 #4
0
 public StatusWindow(GUIIrcConnection baseCon)
     : base(baseCon)
 {
     InitializeComponent();
     AssociatedConnection.BaseConnection.PingReceived += new PingReceivedEventHandler(Client_OnPing);
     AssociatedConnection.BaseConnection.ModeReceived += new ModeReceivedEventHandler(Client_ModeReceived);
     MotdValue = new MotdListener(AssociatedConnection.BaseConnection);
     MotdValue.MotdEnd += new MotdEndEventHandler(MotdValue_MotdEnd);
     Input += new InputEventHandler(StatusWindow_Input);
     Disposed += new EventHandler(StatusWindow_Disposed);
 }
예제 #5
0
 public QueryWindow(GUIIrcConnection baseCon, UserInfo user)
     : base(baseCon)
 {
     BoundedUserValue = user;
     IrcConnection con = baseCon.BaseConnection;
     con.PrivateMessageReceived += new PrivateMessageReceivedEventHandler(Client_PrivateMessageReceived);
     con.NickChangeReceived += new NickChangeReceivedEventHandler(Client_NickChangeReceived);
     con.QuitReceived += new QuitReceivedEventHandler(Client_QuitReceived);
     InitializeComponent();
     Text = user.NickName;
     MdiParent = baseCon.Status.MdiParent;
 }
예제 #6
0
 public QueryWindow(GUIIrcConnection baseCon, PrivateMessageReceivedEventArgs args)
     : base(baseCon)
 {
     if (args.Destination != args.Client.CurrentNick) throw new ArgumentOutOfRangeException("msg", "Received private message is no direct message");
     BoundedUserValue = args.Sender;
     IrcConnection con = baseCon.BaseConnection;
     con.PrivateMessageReceived += new PrivateMessageReceivedEventHandler(Client_PrivateMessageReceived);
     con.NickChangeReceived += new NickChangeReceivedEventHandler(Client_NickChangeReceived);
     con.QuitReceived += new QuitReceivedEventHandler(Client_QuitReceived);
     InitializeComponent();
     Text = args.Sender.NickName;
     MdiParent = baseCon.Status.MdiParent;
     Client_PrivateMessageReceived(args.Client, args);
 }
예제 #7
0
 void Connection_WindowOpened(GUIIrcConnection sender, WindowOpenedEventArgs args)
 {
     WindowSwitchToolStripButton newBtn = new WindowSwitchToolStripButton(args.OpenedWindow);
     Items.Add(newBtn);
 }