private void btnAppChangePwd_Click(object sender, EventArgs e) { Cursor = Cursors.AppStarting; Form fx = new frmUserEntry(AppHelper.appUserID); fx.ShowDialog(); Cursor = Cursors.Default; }
private void btnAdd_Click(object sender, EventArgs e) { Cursor = Cursors.AppStarting; Form fx = new frmUserEntry(); fx.ShowDialog(); btnRefresh.PerformClick(); Cursor = Cursors.Default; }
private void btnEdit_Click(object sender, EventArgs e) { Cursor = Cursors.AppStarting; try { Form fx = new frmUserEntry((int)_grid.Columns["id"].Value); fx.ShowDialog(); btnRefresh.PerformClick(); } catch { RibbonMessageBox.Show("No data selected for editing\n", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } Cursor = Cursors.Default; }