Exemplo n.º 1
0
        private void cmdNewClient_Click(object sender, EventArgs e)
        {
            if (!this.checkAuth())
            {
                return;
            }
            var frm = new frmClient();

            frm.ShowDialog();
        }
Exemplo n.º 2
0
        private void cmdEditClient_Click(object sender, EventArgs e)
        {
            if (!this.checkAuth())
            {
                return;
            }
            var frm = new frmClient();

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

            frm.ShowDialog();
        }