Ejemplo n.º 1
0
        private void BtnNew_Click(object sender, EventArgs e)
        {
            FrmBranch frmBranch = new FrmBranch();

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

            if (currentRow != null || currentRow.RowType == RowType.Record)
            {
                Guid      id        = Guid.Parse(currentRow.Cells["ID"].Value.ToString());
                FrmBranch frmBranch = new FrmBranch(false, id);
                frmBranch.ShowDialog();
            }
        }
Ejemplo n.º 3
0
        private void BtnEdit_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());
                FrmBranch frmBranch = new FrmBranch(true, id);
                frmBranch.ShowDialog();
                if (frmBranch.SaveCompleted)
                {
                    LoadData();
                }
            }
        }