示例#1
0
        private void loginBtn_Click(object sender, EventArgs e)
        {
            string tempId = inputId.Text;
            string tempPw = inputPwd.Text;

            if (tempId.CompareTo("") == 0 || tempPw.CompareTo("") == 0)
            {
                MessageBox.Show("아이디와 비밀번호를 입력해주세요");
            }
            else
            {
                Member loginMem = AuthCheck(tempId, tempPw);

                if (loginMem != null)
                {
                    this.Hide();
                    if (loginMem.auth == 0)
                    {
                        UserHome uh = new UserHome(this, loginMem);
                        uh.Location = new Point(this.Location.X, this.Location.Y);
                        uh.ShowDialog();
                    }
                    else
                    {
                        AdminHome ah = new AdminHome(this, loginMem);
                        ah.Location = new Point(this.Location.X, this.Location.Y);
                        ah.ShowDialog();
                    }
                }
                else
                {
                    MessageBox.Show("입력하신 계정이 존재하지 않습니다.");
                }
            }
        }
        public ItemCreate(UserHome userHome, Member member)
        {
            InitializeComponent();

            this.userHome = userHome;
            this.member   = member;
            formType      = 0;
        }
示例#3
0
        public ItemRetrieve(UserHome userHome, Task task, Member member)
        {
            InitializeComponent();

            this.userHome = userHome;
            this.task     = task;
            this.member   = member;
        }