コード例 #1
0
        private void ReloadProfileButtons()
        {
            m_vue.ClearProfilButtons();
            foreach (Profile t_profil in SQLiteDAO.loadAllProfile())
            {
                m_vue.AfficherProfilButton(t_profil.Name, t_profil.Id.ToString());
            }

            /*foreach (XmlNode t_profil in m_Doc.DocumentElement.SelectNodes("/Data/Profil")) {
             *  m_vue.AfficherProfilButton(t_profil.SelectSingleNode("./Name").InnerText, t_profil.SelectSingleNode("./Id").InnerText);
             * }*/
        }
コード例 #2
0
        public void DeleteCurrentProfile()
        {
            if (SQLiteDAO.loadAllProfile().Count > 1)
            {
                SQLiteDAO.removeProfile(ProfileActu);
                LoadProfile(SQLiteDAO.loadAllProfile()[0].Id.ToString());
            }

            /*XmlNodeList t_profileList = m_Doc.SelectNodes("/Data/Profil");
             * if (t_profileList.Count > 1) {
             *  m_Doc.DocumentElement.RemoveChild(CurrentProfile);
             *  m_vue.RetirerProfilButton(CurrentProfile.SelectSingleNode("./Name").InnerText);
             *  LoadProfile(m_Doc.DocumentElement.LastChild.SelectSingleNode("./Id").InnerText);
             * }*/
        }