private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            menu menu = new menu();

            menu.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            string filepath = @"C:\\Users\\Asus\\Desktop\\New folder\\studentID" + txtmatrixnm.Text + ".txt";

            if (File.Exists(filepath)) //&& !File.Exists(filepath)
            {
                this.Hide();
                menu buka = new menu();

                buka.Show();
            }
            studentID = txtmatrixnm.Text;
        }
Example #3
0
        private void button3_Click(object sender, EventArgs e)
        {
            equipment equip    = new equipment();
            string    filepath = @"C:\\Users\\Asus\\Desktop\\New folder\\apply\\" + label14.Text + ".txt";

            using (StreamWriter sw = new StreamWriter(filepath))
            {
                foreach (var item in listBox1.Items)
                {
                    sw.WriteLine(item);
                }
            }
            MessageBox.Show("your registration is successfully" + "\n " + "wait approval from staff");
            this.Hide();
            menu mne = new menu();

            mne.Show();
        }