private void btn_add_Click(object sender, EventArgs e) { SSQ_Add add = new SSQ_Add(""); add.StartPosition = FormStartPosition.CenterParent; if (add.ShowDialog() == DialogResult.OK) { InitList(); } }
//双击修改 private void btn_bindCont_Click(object sender, EventArgs e) { try { ListView.SelectedListViewItemCollection l = this.listView.SelectedItems; SsqNumbers ssq = l[0].Tag as SsqNumbers; SSQ_Add add = new SSQ_Add(ssq.Qh); add.StartPosition = FormStartPosition.CenterScreen; DialogResult dr = add.ShowDialog(); if (dr == DialogResult.OK) { InitList(); } } catch (Exception ex) { Log.GetInstance().WriteLog(ex.Message + ex.StackTrace, Log.Level.Error); } }