/*
         * public void tabPage_Disposed(object sender, ControlEventArgs e)
         * {
         *      TabPage tabPage = (TabPage)sender;
         *      this.IRC_ChatWindowText("tabPage2", "(Me) " + "-Serverlist_Chat,irc,part," + tabPage.Name + "\n");
         *      this.Server.SendGSPacket(new CString() + (byte)154 + "-Serverlist_Chat,irc,part," + tabPage.Name + "\n");
         * }
         */
        protected void formclosed(object o, EventArgs args)
        {
            this.Server.CloseServers();

            ServerWindow serverWindow = ServerWindow.GetInstance();

            serverWindow.Show();
        }
Exemplo n.º 2
0
        public void RunServer()
        {
            this.Build();

            this.bg      = new global::Gtk.Image();
            this.bg.Name = "bg";

            this.bg.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("OpenGraal.GraalIM.Resources.rc_images.rc_opengraal.jpg");

            if (this.rcSettings.Loaded)
            {
                if (System.IO.File.Exists("skins/" + this.rcSettings.Background))
                {
                    this.bg.Pixbuf = new Gdk.Pixbuf("skins/" + this.rcSettings.Background);
                }
            }

            this.bg.SetAlignment(0, 0);
            this.bg.HeightRequest = 160;

            this.SizeRequested += OnResize;
            this.table3.Add(this.bg);

            global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table3[this.bg]));
            w4.BottomAttach = ((uint)(0));


            //this.ResizeChecked += OnResize;
            //this.SizeRequested += OnResize;
            this.CreateButtons();

            this.Framework       = Framework.GetInstance();
            this.PMWindowManager = PMWindowList.GetInstance();
            this.DeleteEvent    += delegate
            {
                this.Framework.CloseServers();

                ServerWindow serverWindow = ServerWindow.GetInstance();
                serverWindow.Show();
            };
            this.DestroyEvent += delegate
            {
                this.Framework.CloseServers();

                ServerWindow serverWindow = ServerWindow.GetInstance();
                serverWindow.Show();
            };
            this.ShowAll();
        }