private void _InitQingdanForm() { this.qd = new QingDanTianKai(true, this._fpxx.Fpdm, this._fpxx.Fphm, false); this.qd.Fplx = this._fpxx.Fplx; if (this._fpxx.Zyfplx == (ZYFP_LX)1) { this.SetHysyHsjxx(this.qd.dataGridView1, true); } else { this.SetHysyHsjxx(this.qd.dataGridView1, false); } this.SetQingdanFormProp(this.qd, this.qd.dataGridView1, this.qd.tool_jg, this.qd.tool_zhekou, this.qd.tool_add, this.qd.tool_remove); }
private void qingdanButton_Click(object sender, EventArgs e) { if (this._fpxx.Qdbz) { this._InitQingdanForm(); this._ShowDataGridMxxx(this._DataGridView); this._DataGridView.ReadOnly = true; this.addRowButton.Enabled = false; this.zhekouButton.Enabled = false; this.delRowButton.Enabled = false; this._ShowDataGrid(this.dataGridView_qd); if (this.qd != null) { this.qd.ShowDialog(); this.qd = null; } this.dataGridView_qd = null; } }