Exemple #1
0
        private void Init()
        {
            UsernametextBox.Text         = "";
            UsernametextBox.MaxLength    = 16;
            PasswordtextBox.Text         = "";
            PasswordtextBox.MaxLength    = 16;
            PasswordtextBox.PasswordChar = '*';
            if (!IconCreate)
            {
                IconCreate = true;
                Tray.CreateIcon();
            }
            Thread t = new Thread(new ThreadStart(cThread));

            t.Start();
            UsernametextBox.Text = Program.ObjConfig.Username;
            PasswordtextBox.Text = Program.ObjConfig.Password;
            checkBox1.Checked    = Convert.ToBoolean(Program.ObjConfig.IsRem);
            // Create the ToolTip and associate with the Form container.
            toolTip1.AutoPopDelay = 5000;
            toolTip1.InitialDelay = 1000;
            toolTip1.ReshowDelay  = 500;
            // Force the ToolTip text to be displayed whether or not the form is active.
            toolTip1.ShowAlways = true;
            toolTip1.SetToolTip(LoginButton, "Login to server.");
            toolTip1.SetToolTip(SettingsButton, "Open settings window.");
            toolTip1.SetToolTip(UsernametextBox, "Type your LiveChat username in here.");
            toolTip1.SetToolTip(PasswordtextBox, "Type your LiveChat password in here.");
        }
Exemple #2
0
 private void cThread()
 {
     while (true)
     {
         if (!Program.ProgramState)
         {
             break;
         }
         if (Program.IsMinimize)
         {
             Minimize();
             Program.IsMinimize = false;
         }
         Thread.Sleep(1);
     }
     Tray.CloseIcon();
     etc.Exit();
 }
Exemple #3
0
        private void Init()
        {
            username_box.Text         = "";
            username_box.MaxLength    = 16;
            password_box.Text         = "";
            password_box.MaxLength    = 16;
            password_box.PasswordChar = '*';
            if (!IconCreate)
            {
                IconCreate = true;
                Tray.CreateIcon();
            }
            Thread t = new Thread(new ThreadStart(cThread));

            t.Start();
            username_box.Text   = Program.ObjConfig.Username;
            password_box.Text   = Program.ObjConfig.Password;
            remember_me.Checked = Convert.ToBoolean(Program.ObjConfig.IsRem);
        }