private void LoadConfig()
        {
            PListConfig plistConfig = new PListConfig("Library/ServerPreferences.plist");

            this.serverAddress = plistConfig["Maint Server"];
            this.userName      = plistConfig["Maint UserName"];
            this.port          = plistConfig["Maint port number"];
            this.projectName   = plistConfig["Maint project name"];
            this.password      = ASEditorBackend.GetPassword(this.serverAddress, this.userName);
            if (this.port != string.Empty && this.port != 10733.ToString())
            {
                ASConfigWindow asConfigWindow = this;
                string         str            = asConfigWindow.serverAddress + ":" + this.port;
                asConfigWindow.serverAddress = str;
            }
            this.serversList         = InternalEditorUtility.GetEditorSettingsList("ASServer", 20);
            this.serversLv.totalRows = this.serversList.Length;
            if (!ArrayUtility.Contains <string>(this.serversList, this.serverAddress))
            {
                return;
            }
            this.serversLv.row = ArrayUtility.IndexOf <string>(this.serversList, this.serverAddress);
        }
 private void SelectedPageChanged()
 {
   AssetServer.ClearAssetServerError();
   if (this.committing)
     this.CancelCommit();
   switch (this.selectedPage)
   {
     case ASMainWindow.Page.Overview:
       if (ASEditorBackend.SettingsAreValid())
       {
         AssetServer.CheckForServerUpdates();
         if (this.UpdateNeedsRefresh())
         {
           this.InitiateUpdateStatusWithCallback("CBInitOverviewPage");
           break;
         }
         this.InitOverviewPage(true);
         break;
       }
       this.connectionString = "Asset Server connection for current project is not set up";
       this.sharedChangesets = new Changeset[0];
       this.changesetContents = new GUIContent[0];
       this.needsSetup = true;
       break;
     case ASMainWindow.Page.Update:
       this.InitUpdatePage(true);
       break;
     case ASMainWindow.Page.Commit:
       this.asCommitWin = new ASCommitWindow(this, !this.pvHasSelection ? (string[]) null : ASCommitWindow.GetParentViewSelectedItems(this.pv, true, false).ToArray());
       this.asCommitWin.InitiateReinit();
       break;
     case ASMainWindow.Page.History:
       this.pageTitles[3] = "History";
       this.InitHistoryPage(true);
       break;
     case ASMainWindow.Page.ServerConfig:
       this.pageTitles[3] = "Connection";
       this.asConfigWin = new ASConfigWindow(this);
       break;
     case ASMainWindow.Page.Admin:
       this.pageTitles[3] = "Administration";
       this.asAdminWin = new ASServerAdminWindow(this);
       if (!this.error)
         break;
       break;
   }
 }