Exemplo n.º 1
0
        private void tBtnAddProj_Click(object sender, EventArgs e)
        {
            FrmManageProj addprojForm = new FrmManageProj(null);

            addprojForm.ShowDialog();
            ReloadProjects();
        }
Exemplo n.º 2
0
        private void listVProjects_DoubleClick(object sender, EventArgs e)
        {
            if (listVProjects.SelectedItems.Count > 0)
            {
                var        a          = listVProjects.SelectedItems[0];
                HA_Project ha_project = new HA_Project
                {
                    proj_code = a.SubItems[0].Text,
                    proj_name = a.SubItems[1].Text,
                    proj_port = Convert.ToInt32(a.SubItems[2].Text),
                    proj_note = a.SubItems[3].Text
                };

                FrmManageProj addprojForm = new FrmManageProj(ha_project);
                addprojForm.ShowDialog();
                ReloadProjects();
            }
        }