示例#1
0
        public LoginForm()
        {
            InitializeComponent();

            this.Font = new Font(Program.myFonts.Families[0], 9);

            browser.ScriptErrorsSuppressed = true;
            loginReg = new AutoLogin();
        }
示例#2
0
        public LoginForm(string id)
        {
            InitializeComponent();
            browser.ScriptErrorsSuppressed = true;
            loginReg = new AutoLogin();

            idText.Text = id;

            saveIdBox.Checked = true;
        }
示例#3
0
        public LoginForm(string id, string pw)
        {
            InitializeComponent();
            browser.ScriptErrorsSuppressed = true;
            loginReg = new AutoLogin();

            idText.Text = id;
            passText.Text = pw;

            loginBtn_Click(null, null);
        }
示例#4
0
        public SettingForm()
        {
            InitializeComponent();

            this.Font = new Font(Program.myFonts.Families[0], 9);

            loginSwitch = this.autoLoginSwitch;
            sayswitch = this.saySwitch;

            alarmTip.SetToolTip(alarmLabel, "새 글 알림 기능을 끄고 켤 수 있습니다 :-(");
            autoLoginTip.SetToolTip(autoLoginLabel, "자동 로그인 기능을 끄고 켤 수 있습니다 :-|");
            sayTip.SetToolTip(sayLabel, "랜덤 명언을 보이거나 안보이게 할 수 있습니다 :-)");

            autologin = new AutoLogin();
        }
示例#5
0
        static void Main()
        {
            if (myFonts == null)
            {
                myFonts = new PrivateFontCollection();
                byte[] font = Properties.Resources.malgun;
                fontBuffer = Marshal.AllocCoTaskMem(font.Length);
                Marshal.Copy(font, 0, fontBuffer, font.Length);
                myFonts.AddMemoryFont(fontBuffer, font.Length);
            }

            if (myBoldFonts == null)
            {
                myBoldFonts = new PrivateFontCollection();
                byte[] font = Properties.Resources.malgunbd;
                fontBuffer = Marshal.AllocCoTaskMem(font.Length);
                Marshal.Copy(font, 0, fontBuffer, font.Length);
                myBoldFonts.AddMemoryFont(fontBuffer, font.Length);
            }

            // Application.Run(new Snake.SnakeForm());
            // Application.Run(new FacebookForm());
            // Application.Run(new Forms.BrowserForm("http://google.com", ""));

            isExit = true;

            Application.EnableVisualStyles();
            // Application.SetCompatibleTextRenderingDefault(false);

            AutoLogin loginReg = new AutoLogin();
            string regId = "", regPw = "";

            if (!System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable())
            {
                Application.Exit();
                MessageBox.Show("인터넷 연결에 문제가 있습니다.\r\n 프로그램을 종료합니다. :^(", "Robot의 경고");
                System.Diagnostics.Process[] mProcess = System.Diagnostics.Process.GetProcessesByName(Application.ProductName);
                foreach (System.Diagnostics.Process p in mProcess)
                    p.Kill();
                return;
            }

            if (loginReg.ReadRegistry(ref regId, ref regPw))
            {
                if (regPw == "")
                {
                    f2 = new LoginForm(regId);
                    Application.Run(f2);
                }

                else
                {
                    id = regId;
                    password = regPw;
                    autoLogin = true;

                    f1 = new MainForm();
                    Application.Run(f1);
                }
            }

            else
            {
                f2 = new LoginForm();
                Application.Run(f2);
            }

            if (login == true)
            {
                f1 = new MainForm();
                Application.Run(f1);
            }
        }
示例#6
0
 public Nate()
 {
     autoLogin = new AutoLogin();
 }