示例#1
0
        private void open_frm_ProjectAdd(object sender, EventArgs e)
        {
            using (frm_ProjectAdd ProjectAdd = new frm_ProjectAdd())
            {
                ProjectAdd.ShowDialog();
                string ProjectNumber = ProjectAdd.pNumber;

                if (string.IsNullOrWhiteSpace(ProjectNumber) == false)
                {
                    refreshPage(ProjectAdd, e);
                }
            }
        }
示例#2
0
        private void btn_NewProject_Click(object sender, EventArgs e)
        {
            using (frm_ProjectAdd ProjectAdd = new frm_ProjectAdd())
            {
                ProjectAdd.ShowDialog();
                string ProjectNumber = ProjectAdd.pNumber;

                // Refreshes this form if new project number is generated (at project creation)
                if (string.IsNullOrWhiteSpace(ProjectNumber) == false)
                {
                    fillProjectsDataSet();
                    refreshProjectForm(ProjectNumber);
                }
            }
        }