예제 #1
0
        private void BtnNew_Click(object sender, EventArgs e)
        {
            FrmCompany frmCompany = new FrmCompany();

            frmCompany.ShowDialog();
            if (frmCompany.SaveCompleted)
            {
                LoadData();
            }
        }
예제 #2
0
        private void BtnView_Click(object sender, EventArgs e)
        {
            GridEXRow currentRow = gridList.GetRow();

            if (currentRow != null || currentRow.RowType == RowType.Record)
            {
                Guid       id         = Guid.Parse(currentRow.Cells["ID"].Value.ToString());
                FrmCompany frmCompany = new FrmCompany(false, id);
                frmCompany.ShowDialog();
            }
        }