Ejemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     m = new Mkr();
     if (m.IsOK)
     {
         MessageBox.Show("done");
         btnAddRow.Enabled     = true;
         btnDeleteRows.Enabled = true;
         btnSave.Enabled       = true;
         dataGridView1.Enabled = true;
         textBox1.Enabled      = true;
     }
     if (!m.IsOK)
     {
         MessageBox.Show(m.Ex.Message);
     }
 }
Ejemplo n.º 2
0
        private void btnOpenMkr_Click(object sender, EventArgs e)
        {
            OpenFileDialog op = new OpenFileDialog();

            op.ShowDialog();
            m = new Mkr(op.FileName);

            if (m.IsOK)
            {
                MessageBox.Show("done");
                btnAddRow.Enabled     = true;
                btnDeleteRows.Enabled = true;
                btnSave.Enabled       = true;
                dataGridView1.Enabled = true;
                textBox1.Enabled      = true;
                ShowMkr();
            }
            if (!m.IsOK)
            {
                MessageBox.Show(m.Ex.Message);
            }
        }