Esempio n. 1
0
        private void BtnNew_Click(object sender, EventArgs e)
        {
            FrmUser frmUser = new FrmUser();

            frmUser.ShowDialog();
            if (frmUser.SaveCompleted)
            {
                LoadData();
            }
        }
Esempio n. 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());
                FrmUser frmUser = new FrmUser(false, id);
                frmUser.ShowDialog();
            }
        }
Esempio 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());
                FrmUser frmUser = new FrmUser(true, id);
                frmUser.ShowDialog();
                if (frmUser.SaveCompleted)
                {
                    LoadData();
                }
            }
        }