private void MainForm_Load(object sender, EventArgs e)
        {
            if (!SessionHelper.SYS_START_UP)
            {
                //that work!
                var message = new MassageBoxModel();
                message.TITLE       = SessionHelper.SYS_TITLE;
                message.MESSAGE     = SessionHelper.SYS_ERROR_CODE + " : " + SessionHelper.SYS_ERROR_MESSAGE;
                message.BUTTON_TYPE = ButtonType.OK;

                using (MassageBox box = new MassageBox(message))
                {
                    box.ShowDialog(this);
                }

                Application.Exit();
            }
            else
            {
                _obj = this;
                UserControlHelper.SetUserControl(panelClientBody, userControl: new UCClientBody(), dockStyle: UserControlDockStyle.DockStyleFill);

                // panelClientBody.BackgroundImage = Character.Resources.CharacterRes.bg_01;
            }
        }
Ejemplo n.º 2
0
 private void btnHome_Click(object sender, EventArgs e)
 {
     MainForm.Instance.PnlTitle.BackColor = Color.Black;
     if (!MainForm.Instance.PnlClientBody.Controls.ContainsKey("UCClientBody"))
     {
         UserControlHelper.SetUserControl(MainForm.Instance.PnlClientBody, userControl: new UCClientBody(), dockStyle: UserControlDockStyle.DockStyleFill);
     }
     MainForm.Instance.PnlClientBody.Controls["UCClientBody"].BringToFront();
 }
 private void btnSetting_Click(object sender, EventArgs e)
 {
     if (!MainForm.Instance.PnlClientBody.Controls.ContainsKey("UCClientCharacter"))
     {
         UserControlHelper.SetUserControl(MainForm.Instance.PnlClientBody, userControl: new UCClientCharacter(), dockStyle: UserControlDockStyle.DockStyleFill);
     }
     MainForm.Instance.PnlClientBody.Controls["UCClientCharacter"].BringToFront();
     MainForm.Instance.PnlTitle.BackColor = Color.FromArgb(32, 32, 32);
 }
Ejemplo n.º 4
0
 private void btnFFAffiliation_Click(object sender, EventArgs e)
 {
     Global.PActiveHide(panelClient);
     Global.PActiveShow(PActiveFFAffiliation);
     UserControlHelper.SetUserControl(panelClientTask, userControl: new UCFFAffiliation(), dockStyle: UserControlDockStyle.DockStyleFill);
 }
Ejemplo n.º 5
0
 private void btnGuild_Click(object sender, EventArgs e)
 {
     Global.PActiveHide(panelClient);
     Global.PActiveShow(PActiveGuild);
     UserControlHelper.SetUserControl(panelClientTask, userControl: new UCGuild(), dockStyle: UserControlDockStyle.DockStyleFill);
 }
Ejemplo n.º 6
0
 private void btnSetting_Click(object sender, EventArgs e)
 {
     UserControlHelper.SetUserControl(panelBody, userControl: new UCSetting(), dockStyle: UserControlDockStyle.DockStyleFill);
 }
Ejemplo n.º 7
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     panelMenuTask.Hide();
     UserControlHelper.SetUserControl(panelClientBody, userControl: new UCClientBody(), dockStyle: UserControlDockStyle.DockStyleFill);
 }