コード例 #1
0
ファイル: Form1.cs プロジェクト: sourbrew/WebApiSdkSample
        private void cmdNewClient_Click(object sender, EventArgs e)
        {
            if (!this.checkAuth())
            {
                return;
            }
            var frm = new frmClient();

            frm.ShowDialog();
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: sourbrew/WebApiSdkSample
        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();
        }