private void 除券商帐户ToolStripMenuItem1_Click(object sender, EventArgs e) { AASClient.AASServiceReference.DbDataSet.券商帐户Row DataRow1 = (this.bindingSource券商帐户.Current as DataRowView).Row as AASClient.AASServiceReference.DbDataSet.券商帐户Row; Program.AASServiceClient.DeleteQSAccount(DataRow1.称); this.bindingSource券商帐户.DataSource = Program.AASServiceClient.QueryQsAccount(); }
private void dataGridView券商帐户_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 0) { AASClient.AASServiceReference.DbDataSet.券商帐户Row DataRow1 = (this.bindingSource券商帐户.Current as DataRowView).Row as AASClient.AASServiceReference.DbDataSet.券商帐户Row; Program.AASServiceClient.EnableQSAccount(DataRow1.称, !DataRow1.启用); this.bindingSource券商帐户.DataSource = Program.AASServiceClient.QueryQsAccount(); } }
private void dataGridView券商帐户_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { AASClient.AASServiceReference.DbDataSet.券商帐户Row DataRow1 = (this.bindingSource券商帐户.Current as DataRowView).Row as AASClient.AASServiceReference.DbDataSet.券商帐户Row; ModifyQSAccountForm ModifyQSAccountForm1 = new ModifyQSAccountForm(DataRow1); DialogResult DialogResult1 = ModifyQSAccountForm1.ShowDialog(); if (DialogResult1 != System.Windows.Forms.DialogResult.OK) { return; } this.bindingSource券商帐户.DataSource = Program.AASServiceClient.QueryQsAccount(); }
public ModifyQSAccountForm(AASClient.AASServiceReference.DbDataSet.券商帐户Row QSAccount1) { InitializeComponent(); this.券商帐户 = QSAccount1; }