예제 #1
0
 private void UpdateAllScriptForOneUser(int nCase)
 {
     if (m_listUser == null)
     {
         m_listUser = ObtaintUserTextList();
     }
     if (nCase >= 0 && nCase < m_listUser.Items.Count)
     {
         mUser = new User(m_listUser.Items[nCase]);
         mUser.LoadData(false);
         mUser.UpdateAllProfileScript();
     }
 }
예제 #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();
         }
     }
 }
예제 #3
0
        private bool LoadCurrentUser()
        {
            File.textlist f = new PeonLib.File.textlist(definitions.path.UserCurrent);

            if (f.Items.Count == 0)
            {
                return(false);
            }
            if (f.Items[0] == "")
            {
                return(false);
            }
            mUser = new User(f.Items[0]);
            mUser.LoadData(true);
            return(true);
        }