Ejemplo n.º 1
0
        internal static void LoadDialoge(string FormName)
        {
            Form ShowForm = LoadGUI.LoadFormInDialoge(FormName);

            if (ShowForm != null)
            {
                ShowForm.ShowDialog();
            }
        }
Ejemplo n.º 2
0
 private void btnExit_Click(object sender, EventArgs e)
 {
     if (CurrentStage == Stage.locked)
     {
         if (DialogResult.OK == MessageBox.Show("You are entering Stock Do you realy want to Exit?", "It is Not Recommended!", MessageBoxButtons.YesNo, MessageBoxIcon.Warning))
         {
             LoadGUI.LoadForm(ConfigApp.DisplayArea, ConfigFormNames.WELCOME_SCREEN);
         }
     }
     else
     {
         LoadGUI.LoadForm(ConfigApp.DisplayArea, ConfigFormNames.WELCOME_SCREEN);
     }
 }
Ejemplo n.º 3
0
        internal static void LoadForm(Panel panel, string FormName)
        {
            Form ShowForm = LoadGUI.LoadFormInPanel(FormName);

            if (ShowForm != null)
            {
                ShowForm.TopLevel        = false;
                ShowForm.Dock            = DockStyle.Fill;
                ShowForm.FormBorderStyle = FormBorderStyle.None;
                ShowForm.Size            = panel.Size;
                panel.Controls.Clear();
                panel.Controls.Add(ShowForm);
                ShowForm.Show();
                ShowForm.Focus();
            }
        }
Ejemplo n.º 4
0
 private void btnExit_Click(object sender, EventArgs e)
 {
     LoadGUI.LoadForm(ConfigApp.DisplayArea, ConfigFormNames.WELCOME_SCREEN);
 }
 private void toolStripButton29_Click(object sender, EventArgs e)
 {
     LoadGUI.LoadForm(ConfigApp.DisplayArea, ConfigFormNames.STOCK_NEW);
 }
Ejemplo n.º 6
0
 internal static void loadFormInDialoge(string ZONE_DIALOGE)
 {
     LoadGUI.LoadDialoge(ZONE_DIALOGE);
 }
Ejemplo n.º 7
0
 public static void loadFormInPanel(Panel panel, String FormName)
 {
     LoadGUI.LoadForm(panel, FormName);
 }