示例#1
0
 private void toolStripButton2_Click(object sender, EventArgs e)
 {
     if (this.dataGridView1.CurrentCell != null)
     {
         MeteringModel s     = new MeteringModel(Convert.ToInt32(this.dataGridView1.Rows[this.dataGridView1.CurrentCell.RowIndex].Cells["id"].Value), this.dataGridView1.Rows[this.dataGridView1.CurrentCell.RowIndex].Cells["num"].Value.ToString(), this.dataGridView1.Rows[this.dataGridView1.CurrentCell.RowIndex].Cells["name"].Value.ToString());
         MeteringPopup popup = new MeteringPopup(this, s);
         popup.Show();
     }
 }
示例#2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            MeteringPopup popup = new MeteringPopup(this, null);

            popup.Show();
        }