Пример #1
0
        public XmlHandler(UIEventManager eventManager)
        {
            eventManager_m = eventManager;
            eventManager_m.OnNewCredentials += new UIEventManager.NewCredentialsEvent(eventManager_m_OnNewCredentials);
            eventManager_m.OnDirectoryChanged += new UIEventManager.DirectoryChangedEvent(eventManager_m_OnDirectoryChanged);

            if (!File.Exists(configFile_m))
            {
                string xml = "<gitClient><credential><username></username>" +
                        "<password></password></credential><lastLocation></lastLocation></gitClient>";
                File.WriteAllText(configFile_m, xml);

                eventManager_m.TriggerUpdateCredentialsEvent(true);
            }
        }