예제 #1
0
파일: FrmRate.cs 프로젝트: 51erp/commission
        private void toolStripButton_Add_Click(object sender, EventArgs e)
        {
            FrmRateAdd add = new FrmRateAdd();

            add.Owner = this;
            add.ShowDialog();
        }
예제 #2
0
파일: FrmRate.cs 프로젝트: 51erp/commission
        private void toolStripButton_Modify_Click(object sender, EventArgs e)
        {
            if (dataGridView_Rate.CurrentRow != null)
            {
                string id = dataGridView_Rate.CurrentRow.Cells["ColID"].Value.ToString();

                FrmRateAdd modify = new FrmRateAdd();
                modify.Owner   = this;
                modify.FrmMode = FormMode.modify;
                modify.ID      = id;
                modify.ShowDialog();
            }
        }