private void Dubbel_invoer() { switch (m_type) { case 1: overview1 overv1 = new overview1(1, m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 4); overv1.StartPosition = System.Windows.Forms.FormStartPosition.Manual; overv1.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { overv1.Location = Global.position; overv1.Size = Global.size; } overv1.Show(); break; case 2: overview1 overv2 = new overview1(2, m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 4); overv2.StartPosition = System.Windows.Forms.FormStartPosition.Manual; overv2.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { overv2.Location = Global.position; overv2.Size = Global.size; } overv2.Show(); break; case 3: overview1 overv3 = new overview1(3, m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 4); overv3.StartPosition = System.Windows.Forms.FormStartPosition.Manual; overv3.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { overv3.Location = Global.position; overv3.Size = Global.size; } overv3.Show(); break; } }
public void Norm_ov()//type * route 3 { if (m_start_scherm is persoon_form) { overview1 mn_ov = new overview1(m_type, m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 3); mn_ov.StartPosition = System.Windows.Forms.FormStartPosition.Manual; mn_ov.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { mn_ov.Location = Global.position; mn_ov.Size = Global.size; } mn_ov.Show(); } else if (m_start_scherm is project_form) { overview1 mn_ov = new overview1(m_type, m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 2); mn_ov.StartPosition = System.Windows.Forms.FormStartPosition.Manual; mn_ov.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { mn_ov.Location = Global.position; mn_ov.Size = Global.size; } mn_ov.Show(); } else if (m_start_scherm is newrecord) { overview1 mn_ov = new overview1(m_type, m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 1); mn_ov.StartPosition = System.Windows.Forms.FormStartPosition.Manual; mn_ov.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { mn_ov.Location = Global.position; mn_ov.Size = Global.size; } mn_ov.Show(); } else if (m_start_scherm is Menu) { overview1 mn_ov = new overview1(m_type, m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 0); mn_ov.StartPosition = System.Windows.Forms.FormStartPosition.Manual; mn_ov.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { mn_ov.Location = Global.position; mn_ov.Size = Global.size; } mn_ov.Show(); } else if (m_start_scherm is bedrijf_form) { overview1 mn_ov = new overview1(m_type, m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 6); mn_ov.StartPosition = System.Windows.Forms.FormStartPosition.Manual; mn_ov.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { mn_ov.Location = Global.position; mn_ov.Size = Global.size; } mn_ov.Show(); } }