示例#1
0
        private void UC_Data_Project_deleteclick(object sender, EventArgs e)
        {
            UC_data_project uC_Data_Project = sender as UC_data_project;

            tlp_project_list.Controls.Remove(uC_Data_Project);
            tlp_project_list.RowCount -= 1;
        }
示例#2
0
        private void btn_project_create_Click(object sender, EventArgs e)
        {
            if (tlp_project_list.RowCount > 1)
            {
                tlp_project_list.RowCount = tlp_project_list.RowCount + 1;
            }
            UC_data_project uC_Data_Project = new UC_data_project();

            tlp_project_list.Controls.Add(uC_Data_Project, 1, 0);
            uC_Data_Project.deleteclick += UC_Data_Project_deleteclick;
        }
示例#3
0
        private void btn_project_ok_Click(object sender, EventArgs e)
        {
            try
            {
                DataTable dt = new DataTable();
                dt.Columns.Add("Company");
                dt.Columns.Add("Projectname");
                dt.Columns.Add("OS");
                dt.Columns.Add("DB");
                dt.Columns.Add("Scrib");
                dt.Columns.Add("Title");
                dt.Columns.Add("Date");
                dt.Columns.Add("Programlanguage");
                dt.Columns.Add("Programtools");


                if (string.IsNullOrEmpty(id))
                {
                    MessageBox.Show("請先建立人事資料");
                    return;
                }

                foreach (Control c in tlp_project_list.Controls)
                {
                    if (c is UC_data_project)
                    {
                        UC_data_project uC_Data_Project = new UC_data_project();
                        uC_Data_Project = (UC_data_project)c;
                        uC_Data_Project.Getdata();
                    }
                }
            }
            catch
            {
            }
        }