Example #1
0
        public void UpdateAllUserScript()
        {
            m_listUser = ObtaintUserTextList();

            for (int i = 0; i < m_listUser.Items.Count; i++)
            {
                UpdateAllScriptForOneUser(i);
            }
            LoadCurrentUser();
            mUser.TransferCurrentProfileInCurrentScript();
            MessageBox.Show("All scripts are uppdated :)");
        }
Example #2
0
 private void SetCurrentUser(string name, bool bisCurrentProfile)
 {
     if (name != "")
     {
         System.IO.TextWriter f = new System.IO.StreamWriter(definitions.path.UserCurrent);
         f.WriteLine(name);
         f.Close();
         mUser = new User(name);
         mUser.LoadData(bisCurrentProfile);
         if (bisCurrentProfile)
         {
             mUser.TransferCurrentProfileInCurrentScript();
         }
     }
 }