private void button1_Click(object sender, EventArgs e)
        {
            int         check;
            string      n = "", roll = "", pic = "";
            ClLibrarian lib = new ClLibrarian();

            check = lib.GetStudentInfo(textBox1.Text, ref n, ref roll, ref pic);

            if (check == 1)
            {
                label4.Text = n;
                label6.Text = roll;

                textBox2.Enabled = true;
                textBox3.Enabled = true;
                button2.Enabled  = true;
                button3.Enabled  = true;
            }
            else
            {
                MessageBox.Show(this, "Student Not Found!");
                textBox2.Enabled = false;
                textBox3.Enabled = false;
                button2.Enabled  = false;
                button3.Enabled  = false;
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            int check;
            string n="", roll="", pic="";
            ClLibrarian lib = new ClLibrarian();

            check = lib.GetStudentInfo(textBox1.Text, ref n, ref roll, ref pic);

            if (check == 1)
            {
                label4.Text = n;
                label6.Text = roll;

                textBox2.Enabled = true;
                textBox3.Enabled = true;
                button2.Enabled = true;
                button3.Enabled = true;

            }
            else
            {
                MessageBox.Show(this,"Student Not Found!");
                textBox2.Enabled = false;
                textBox3.Enabled = false;
                button2.Enabled = false;
                button3.Enabled = false;
            }
        }
        private void button2_Click(object sender, EventArgs e)
        {
            ClLibrarian lib = new ClLibrarian();

            lib.SearchByName(textBox2.Text, ref listBox1, ref t1, ref t2);
        }
 private void button2_Click(object sender, EventArgs e)
 {
     ClLibrarian lib = new ClLibrarian();
     lib.SearchByName(textBox2.Text, ref listBox1, ref t1, ref t2);
 }