internal PMWindow(Int16 Id)
        {
            this.Server   = Framework.GetInstance();
            this.form     = MainWindow2.GetInstance();
            this.Id       = Id;
            this.PMPlayer = (GraalPlayer)this.Server.PlayerManager.FindPlayer(this.Id);
            this.CenterToScreen();

            string TitleText = "";

            TitleText = this.PMPlayer.Account;
            if (this.PMPlayer.Nickname != "" && this.PMPlayer.Nickname != null)
            {
                TitleText += ": " + this.PMPlayer.Nickname;
            }
            this.Text = TitleText;
            this.InitializeComponent(Id);
            this.richTextBox1.ReadOnly = true;
            //this.listBox1 = listBox1;

            //e.

            /*
             * try
             * {
             *      this.InitializeComponent();
             *      this.Show();
             * }
             * catch (SyntaxErrorException e)
             * {
             *      this.form.Write_Text(e.Message + "\r\n");
             * }
             */
        }
		internal PMWindow(Int16 Id)
		{
			this.Server = Framework.GetInstance();
			this.form = MainWindow2.GetInstance();
			this.Id = Id;
			this.PMPlayer = (GraalPlayer)this.Server.PlayerManager.FindPlayer(this.Id);
			this.CenterToScreen();
			
			string TitleText = "";
			TitleText = this.PMPlayer.Account;
			if (this.PMPlayer.Nickname != "" && this.PMPlayer.Nickname != null)
				TitleText +=  ": " + this.PMPlayer.Nickname;
			this.Text = TitleText;
			this.InitializeComponent(Id);
			this.richTextBox1.ReadOnly = true;
			//this.listBox1 = listBox1;

			//e.
			/*
			try
			{
				this.InitializeComponent();
				this.Show();
			}
			catch (SyntaxErrorException e)
			{
				this.form.Write_Text(e.Message + "\r\n");
			}
			*/
		}
Example #3
0
        // Your application's entry point. Here you can initialize your MVVM framework, DI
        // container, etc.
        private static void AppMain(Application app, string[] args)
        {
            var window = new MainWindow2
            {
                DataContext = new MainWindowViewModel(),
            };

#if RELEASE
            window.WindowState = WindowState.Maximized;
            window.Cursor      = null;
#endif
            app.Run(window);
        }
Example #4
0
 private void NewTestCommand_Executed(object sender)
 {
     MainWindow2 window2 = new MainWindow2();
     window2.Show();
 }