コード例 #1
0
ファイル: DepartmentForm.cs プロジェクト: teenyda/assets2
        private void departmentAddClick(object sender, EventArgs e)
        {
            DepartmentAddForm addForm = new DepartmentAddForm();

            this.Tag            = tag_insert;
            addForm.FormClosed += childClose;
            addForm.Tag         = false;
            addForm.Show();
        }
コード例 #2
0
ファイル: DepartmentForm.cs プロジェクト: teenyda/assets2
        private void departmentUpdateClick(object sender, EventArgs e)
        {
            Department d = (Department)dataGridView1.CurrentRow.Tag;

            if (d == null)
            {
                return;
            }


            DepartmentAddForm addForm = new DepartmentAddForm();

            this.Tag            = tag_update;
            addForm.Tag         = false;
            addForm.FormClosed += childClose;
            addForm.setDepartment(d);
            addForm.Show();
        }