public void Groen_pers() { persoon_form prsf = new persoon_form(m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 3); prsf.StartPosition = System.Windows.Forms.FormStartPosition.Manual; prsf.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { prsf.Location = Global.position; prsf.Size = Global.size; } prsf.Show(); }
private void Dubbel_found() { switch (m_type) { case 1: //project project_form pfrm = new project_form(m_start_scherm, m_pa_scherm, 4); pfrm.StartPosition = System.Windows.Forms.FormStartPosition.Manual; pfrm.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { pfrm.Location = Global.position; pfrm.Size = Global.size; } pfrm.Show(); break; case 2: //bedrijf bedrijf_form bfrm = new bedrijf_form(m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 4); bfrm.StartPosition = System.Windows.Forms.FormStartPosition.Manual; bfrm.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { bfrm.Location = Global.position; bfrm.Size = Global.size; } bfrm.Show(); break; case 3: //contact persoon_form prfrm = new persoon_form(m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 4); prfrm.StartPosition = System.Windows.Forms.FormStartPosition.Manual; prfrm.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { prfrm.Location = Global.position; prfrm.Size = Global.size; } prfrm.Show(); break; } }
public void Norm_pers()//(3,0) { try { persoon_form persoon_form1 = new persoon_form(m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 0); persoon_form1.StartPosition = System.Windows.Forms.FormStartPosition.Manual; persoon_form1.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { persoon_form1.Location = Global.position; persoon_form1.Size = Global.size; } persoon_form1.Show(); } catch (System.ObjectDisposedException ODE) { String log_line = "crash program @ " + DateTime.Now.ToString() + " error: " + ODE; System.IO.StreamWriter file = new System.IO.StreamWriter(Global.log_file_path, true); file.WriteLine(log_line); file.Close(); } }
private void button1_Click(object sender, EventArgs e) //toon { if (this.comboBox1.SelectedIndex == 0) //bedrijf { //creating bedrijf_form bedrijf_form bedrijf_form = new bedrijf_form(); bedrijf_form.MdiParent = this; bedrijf_form.Show(); } else if (this.comboBox1.SelectedIndex == 1)//persoon { //creating persoon_form persoon_form persoon_form = new persoon_form(); persoon_form.MdiParent = this; persoon_form.Show(); } else if (this.comboBox1.SelectedIndex == 2)//project { //creating project_form project_form project_form = new project_form(); project_form.MdiParent = this; project_form.Show(); } }
public void Open_record() { switch (m_type) { case 1: project_form prf = new project_form(m_start_scherm, m_pa_scherm, 1); prf.StartPosition = System.Windows.Forms.FormStartPosition.Manual; prf.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { prf.Location = Global.position; prf.Size = Global.size; } prf.Show(); break; case 2: if (m_ownernaam != "") { bedrijf_form bdrf = new bedrijf_form(m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 2); bdrf.StartPosition = System.Windows.Forms.FormStartPosition.Manual; bdrf.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { bdrf.Location = Global.position; bdrf.Size = Global.size; } bdrf.Show(); } else { bedrijf_form bdrf = new bedrijf_form(m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 1); bdrf.StartPosition = System.Windows.Forms.FormStartPosition.Manual; bdrf.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { bdrf.Location = Global.position; bdrf.Size = Global.size; } bdrf.Show(); } break; case 3: if (m_ownernaam != "") { persoon_form persf = new persoon_form(m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 2); persf.StartPosition = System.Windows.Forms.FormStartPosition.Manual; persf.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { persf.Location = Global.position; persf.Size = Global.size; } persf.Show(); } else { persoon_form persf = new persoon_form(m_start_scherm, m_pa_scherm, m_Parent_ID, m_veldnaam, m_ownernaam, 1); persf.StartPosition = System.Windows.Forms.FormStartPosition.Manual; persf.WindowState = Global.windowstate; if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized) { persf.Location = Global.position; persf.Size = Global.size; } persf.Show(); } break; } }