private void label9_Click(object sender, EventArgs e) { InsertCheque f = new InsertCheque(); f.ShowDialog(); MyRefresh(); }
private void label1_Click(object sender, EventArgs e) { InsertCheque f = new InsertCheque(); f.MyId = Guid.Parse(dataGridView1.SelectedRows[0].Cells["Id"].Value.ToString()); f.textBox1.Text = (dataGridView1.SelectedRows[0].Cells["Description"].Value ?? "").ToString(); f.Amount.Text = dataGridView1.SelectedRows[0].Cells["Amount"].Value.ToString(); f.dateTimePicker1.Text = dataGridView1.SelectedRows[0].Cells["IssuanceDateTime"].Value.ToString(); f.PayTo.Text = dataGridView1.SelectedRows[0].Cells["PayTo"].Value.ToString(); f.MyMode = "Edit"; f.ShowDialog(); MyRefresh(); }