public void RunServer() { this.Build(); this.ShowAll(); //this.Server = Framework.GetInstance(); this.PMWindowManager = PMWindowList.GetInstance(); //this.Server.RunServer(); this.form = Abstraction.GetInstance(); }
private void RemovePMWindow(object sender, Gtk.DeleteEventArgs e) { //e.RetVal = true; Abstraction main = Abstraction.GetInstance(); //main.WriteText("Removed PMWindow!"); this.PMWindowManager = PMWindowList.GetInstance(); this.PMWindowManager.DeletePMWindow(this.Id); this.Dispose(); }
public void ReceivedPM(Player Player, CString Message) { this.form = Abstraction.GetInstance(); this.form.WriteText(" -!- Received PM from " + Player.Account.ToString() + "!\n"); PMWindowManager = PMWindowList.GetInstance(); PMWindow PM = PMWindowManager.AddPMWindow(Player.Id); if (PM != null) { PM.SetMessage(Message); } }
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(); }
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(); }
public void WindowInit() { this.Icon = global::Gdk.Pixbuf.LoadFromResource("OpenGraal.GraalIM.Resources.rcicon.ico"); this.Server = Framework.GetInstance(); this.PMWindowManager = PMWindowList.GetInstance(); this.PMPlayer = this.Server.FindPlayer(this.Id); string TitleText = ""; if (this.PMPlayer != null) { TitleText = this.PMPlayer.Account; if (this.PMPlayer.Nickname != "" && this.PMPlayer.Nickname != null) TitleText += ": " + this.PMPlayer.Nickname; } this.Title = TitleText; this.Show(); }
public void WindowInit() { this.Icon = global::Gdk.Pixbuf.LoadFromResource("OpenGraal.GraalIM.Resources.rcicon.ico"); this.Server = Framework.GetInstance(); this.PMWindowManager = PMWindowList.GetInstance(); this.PMPlayer = this.Server.FindPlayer(this.Id); string TitleText = ""; if (this.PMPlayer != null) { TitleText = this.PMPlayer.Account; if (this.PMPlayer.Nickname != "" && this.PMPlayer.Nickname != null) { TitleText += ": " + this.PMPlayer.Nickname; } } this.Title = TitleText; this.Show(); }
private void SendPM(string[] command) { Common.Players.GraalPlayer PMPlayer = Framework.FindPlayer(command[1].Trim()); PMWindowManager = PMWindowList.GetInstance(); PMWindow PM = PMWindowManager.AddPMWindow(PMPlayer.Id); String msg = ""; for (int i = 2; i < command.Length; i++) { msg += command[i].Trim() + " "; } // Turn the string into a CString. Core.CString Message = new Core.CString(msg); if (PM != null) { PM.SendMessage(Message); } }
private void SendPM(string[] command) { Common.Players.GraalPlayer PMPlayer = Framework.FindPlayer(command[1].Trim()); PMWindowManager = PMWindowList.GetInstance(); PMWindow PM = PMWindowManager.AddPMWindow(PMPlayer.Id); String msg = ""; for (int i = 2; i < command.Length; i++) msg += command[i].Trim() + " "; // Turn the string into a CString. Core.CString Message = new Core.CString(msg); if (PM != null) { PM.SendMessage(Message); } }