Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (fmv == null)
     {
         fmv      = new CompanyMV(this);
         fmv.Text = "Dodaj firmę";
         fmv.Show();
     }
 }
Exemplo n.º 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (fmv == null && dataGridView1.Rows.Count != 0)
     {
         fmv      = new CompanyMV(this, dataGridView1.Rows[dataGridView1.CurrentCellAddress.Y].Cells[1].Value.ToString(), dataGridView1.Rows[dataGridView1.CurrentCellAddress.Y].Cells[2].Value.ToString());
         fmv.Text = "Zmień nazwę firmy";
         fmv.Show();
     }
 }
Exemplo n.º 3
0
 public void deleteSmallWindow()
 {
     fmv = null;
 }