Exemplo n.º 1
0
        private void BtnNew_Click(object sender, EventArgs e)
        {
            FrmCategory frmCategory = new FrmCategory();

            frmCategory.ShowDialog();
            if (frmCategory.SaveCompleted)
            {
                LoadData();
            }
        }
Exemplo n.º 2
0
        private void BtnView_Click(object sender, EventArgs e)
        {
            GridEXRow currentRow = gridList.GetRow();

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