Esempio n. 1
0
        private void btnNewRegistration_Click(object sender, EventArgs e)
        {
            if (!this.checkAuth())
            {
                return;
            }
            var frm = new frmRegistration();

            frm.ShowDialog();
        }
Esempio n. 2
0
        private void btnEditRegistration_Click(object sender, EventArgs e)
        {
            if (!this.checkAuth())
            {
                return;
            }
            var frm = new frmRegistration();

            if (grdRegistrations.Rows.Count == 0)
            {
                MessageBox.Show("select registration from grid.");
                return;
            }

            // set the currently selected client (must use verbose objects for editing)
            frm.RegistrationVerbose = OrionApi.Portfolio.RegistrationVerbose((int)grdRegistrations.SelectedRows[0].Cells["id"].Value);

            frm.ShowDialog();
        }