Пример #1
0
        private void toolStripButton_Add_Click(object sender, EventArgs e)
        {
            FrmProjectAdd project = new FrmProjectAdd();

            project.Owner = this;
            project.ShowDialog();
        }
Пример #2
0
        private void toolStripButton_Edit_Click(object sender, EventArgs e)
        {
            if (dataGridView_Project.CurrentRow == null)
            {
                Prompt.Information("未选择要修改的记录!");
                return;
            }

            FrmProjectAdd project = new FrmProjectAdd();

            project.IsModifyMode = true;
            project.ProjectID    = dataGridView_Project.CurrentRow.Cells["ColProjectID"].Value.ToString();
            project.Owner        = this;
            project.ShowDialog();
        }