* Shop + Plugin is now functionnal, sample Plugin provided to connect to the default...
[circ.git] / Circ.Frontend.GtkSharp / ChannelPanel.cs
blob1863022f82a8ede9aea82a9d5997624d31d319f5
1 #region License
2 /* Circ.Frontend.GtkSharp : GTK# frontend for Circ
3 * Copyright (C) 2007 LAVAL Jérémie
5 * This file is licensed under the terms of the LGPL.
7 * For the complete licence see the file COPYING.
8 */
9 #endregion
10 using System;
11 using Gtk;
12 using Circ.Frontend;
13 using Circ.Controller;
15 namespace Circ.Frontend.GtkSharp
17 public partial class ChannelPanel : Gtk.Bin
19 IChannelControl ctrl;
20 ServerPanel servPanel;
21 MessagesPanel messages;
22 UsersPanel users;
23 TextBuffer buffer;
25 public ChannelPanel(IServerPanel servPanel, IChannelControl ctrl)
27 Gtk.Application.Invoke( delegate {
28 this.ctrl = ctrl;
29 this.servPanel = (ServerPanel) servPanel;
30 this.messages = new MessagesPanel();
31 this.users = new UsersPanel();
32 this.buffer = messages.Buffer;
33 this.Build();
34 this.textWindow.Add(messages);
35 this.userWindow.Add(users);
37 this.ShowAll();
38 });