예제 #1
0
        //public string path = Convert.ToString(Environment.CurrentDirectory);//Путь к папке с проектом

        //Кнопка назад
        private void pictureBox5_Click(object sender, EventArgs e)
        {
            AdminStart start = new AdminStart();

            start.Show();
            this.Hide();
        }
예제 #2
0
파일: Start.cs 프로젝트: Elawill/PP02
        private void button1_Click(object sender, EventArgs e)
        {
            string result = Microsoft.VisualBasic.Interaction.InputBox("Введите код:");

            if (result == "000")
            {
                AdminStart start = new AdminStart();
                start.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Данные не верны!", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }