예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            EmployeeForm employee = new EmployeeForm();

            employee.Show();
            Close();
        }
예제 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            using (StreamReader file = new StreamReader("log.txt"))
            {
                string log = file.ReadToEnd();

                if (log.Contains(textBox1.Text) == true && log.Contains(textBox2.Text) == true)
                {
                    MessageBox.Show("있음");

                    if (radioButton1.Checked == true)
                    {
                        고용주 president = new 고용주(textBox1.Text + ".txt");
                        president.Show();
                    }

                    if (radioButton2.Checked == true)
                    {
                        EmployeeForm employee = new EmployeeForm(textBox1.Text + ".txt");
                        employee.Show();
                    }
                }

                if (radioButton3.Checked == true)
                {
                    if (textBox1.Text == "adminmaster" && textBox2.Text == "admin")
                    {
                        MessageBox.Show("관리자 권한으로 로그인 합니다");
                        관리자 managment = new 관리자();
                        managment.Show();
                    }
                    else
                    {
                        MessageBox.Show("없음");
                    }
                }

                else
                {
                    MessageBox.Show("없음");
                }
            }
        }
예제 #3
0
        private void button3_Click(object sender, EventArgs e)
        {
            EmployeeForm employee = new EmployeeForm(textBox1.Text + ".txt");

            employee.Show();
        }
예제 #4
0
 public 근무지(EmployeeForm form1)
 {
     InitializeComponent();
     this.form1 = form1;
 }