Ejemplo n.º 1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     Cursor = Cursors.AppStarting;
     Form fx = new frmItemEntry();
     fx.ShowDialog();
     btnRefresh.PerformClick();
     Cursor = Cursors.Default;
 }
Ejemplo n.º 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            Cursor = Cursors.AppStarting;
            try
            {
                Form fx = new frmItemEntry((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;
        }
Ejemplo n.º 3
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     Form fx = new frmItemEntry();
     fx.ShowDialog();
 }