コード例 #1
0
        private void project_btn_Click(object sender, EventArgs e)
        {
            //creating project_form
            project_form project_form2 = new project_form();

            project_form2.ShowDialog(this);
        }
コード例 #2
0
 public void set_type_n_projnum(int t, int pnr, project_form prnt)
 {
     type       = t;
     project_nr = pnr;
     parent     = prnt;
     if (type == 2)
     {
         label1.Text = "Variabele bedrijven";
     }
     else if (type == 3)
     {
         label1.Text = "Variabele contacten";
     }
     load();
 }
コード例 #3
0
        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;
            }
        }
コード例 #4
0
        public void Norm_proj()//(1,0)
        {
            try
            {
                project_form project_form1 = new project_form(m_start_scherm, m_pa_scherm, 0);
                project_form1.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
                project_form1.WindowState   = Global.windowstate;
                if (Global.windowstate != System.Windows.Forms.FormWindowState.Maximized)
                {
                    project_form1.Location = Global.position;
                    project_form1.Size     = Global.size;
                }

                project_form1.Show();
            }
            catch (ObjectDisposedException ODE)
            {
                String log_line             = "Exception occurred @ " + DateTime.Now.ToString() + " error: " + ODE;
                System.IO.StreamWriter file = new System.IO.StreamWriter(Global.log_file_path, true);
                file.WriteLine(log_line);
                file.Close();
            }
        }
コード例 #5
0
 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();
     }
 }
コード例 #6
0
        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;
            }
        }