public OtherUserWC(user currentUser)
 {
     InitializeComponent();
     txtOtherUserName.Text = currentUser.Username;
     webInterface = new WebManager(txtOtherUserName.Text, "");
     checkCount();
 }
Esempio n. 2
0
        public Form1()
        {
            InitializeComponent();
            userDataManager = new FileManager();
            Login();
            if (DateTime.Now.Month < 11)
            {
                NotNovember countdownThing = new NotNovember();
                countdownThing.ShowDialog();
                if (countdownThing.DialogResult == DialogResult.Cancel)
                {
                    Environment.Exit(0);
                }

            }
            webInterface = new WebManager(loggedInUser.Username, loggedInUser.SecretCode);
            checkCount();
        }
 private bool checkValidUser()
 {
     WebManager wm = new WebManager(txtOtherUserName.Text, "");
     XMLManager xmlUser = new XMLManager(wm.getCurrentWordcount());
     return xmlUser.CheckErrorReturn();
 }
 private void btnGrab_Click(object sender, EventArgs e)
 {
     webInterface = new WebManager(txtOtherUserName.Text,"");
      checkCount();
 }
 private bool checkValidUser()
 {
     WebManager wm = new WebManager(username, secretCode);
     XMLManager xmlUser = new XMLManager(wm.getCurrentWordcount());
     return xmlUser.CheckErrorReturn();
 }