Ejemplo n.º 1
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (button2.Enabled)
     {
         int result = LibraryManager.close();
     }
 }
Ejemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            int result = LibraryManager.close();

            textBox2.Text = result.ToString();
            if (result > 0)
            {
                button1.Enabled   = true;
                button2.Enabled   = false;
                groupBox1.Enabled = false;
                button3.Enabled   = false;
                button4.Enabled   = true;
            }
        }