Beispiel #1
0
        private void edit()
        {
            SupplierModel s     = new SupplierModel(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());
            SupplierPopup popup = new SupplierPopup(this, s);

            popup.Show();
        }
Beispiel #2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            SupplierPopup popup = new SupplierPopup(this, null);

            popup.Show();
        }