示例#1
0
        private void Login()
        {
            string id = textBox1.Text, pw = textBox2.Text;

            if (Naver.Login(id, pw))
            {
                if (this.checkBox1.Checked)
                {
                    Properties.Settings.Default.ID = id;
                }
                if (this.checkBox2.Checked)
                {
                    Properties.Settings.Default.PassWord = pw;
                }

                Program.ID = this.textBox1.Text;
                Program.PW = this.textBox2.Text;
                Properties.Settings.Default.SaveID       = this.checkBox1.Checked;
                Properties.Settings.Default.SavePassword = this.checkBox2.Checked;
                Properties.Settings.Default.AutoLogin    = this.checkBox3.Checked;
                Properties.Settings.Default.Save();
                Program.main.IsLoginForm = false;
            }
            else
            {
                MessageBox.Show("로그인 실패! 아이디와 비밀번호를 확인하시거나, 인터넷 웹브라우저로 로그인 후 다시 시도해주세요.");
            }
        }
示例#2
0
        public Form1()
        {
            InitializeComponent();
            this.ID       = Program.ID;
            this.PassWord = Program.PW;

            if (Naver.Login(this.ID, this.PassWord))
            {
                this.Text = "네리미";
            }
        }
示例#3
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            newCt = Naver.GET_NOTI_COUNT(ID, PassWord);
            if (oldCt != newCt)
            {
                this.label1.Text = newCt.ToString();

                NotiChanged(newCt);
            }
            if (newCt > oldCt)
            {
                newNoti(newCt);
            }
            oldCt = newCt;
        }