Example #1
0
        public MainForm()
        {
            InitializeComponent();
            settingsBox = new Settings();
            svnProvider = new SVNServices();
            mManager = new ReleaseInfoManager();

            initialize();
        }
Example #2
0
 private bool login()
 {
     if (!mIsConnected)
     {
         // log in to the Subversion server and get the releasedata.xml file
         if (svnProvider == null)
         {
             svnProvider = new SVNServices();
         }
         svnProvider.UserName = settingsBox.User;
         svnProvider.Password = settingsBox.Password;
         svnProvider.LocalPath = settingsBox.Path;
         svnProvider.ParentForm = this;
         if (svnProvider.Login())
         {
             if (svnProvider.Update())
             {
                 mIsConnected = true;
                 connectToolStripMenuItem.Text = "Disconnect";
                 mManager.Read();
                 updateSoftwareData();
                 return true;
             }
         }
     }
     return false;
 }