public ASServerAdminWindow(ASMainWindow parentWin)
 {
     this.parentWin = parentWin;
     this.servers   = InternalEditorUtility.GetEditorSettingsList("ASServer", 20);
     this.server    = EditorPrefs.GetString("ASAdminServer");
     this.user      = "******";
 }
Example #2
0
        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())
            {
                this.serverAddress = this.serverAddress + ":" + this.port;
            }
            this.serversList         = InternalEditorUtility.GetEditorSettingsList("ASServer", 20);
            this.serversLv.totalRows = this.serversList.Length;
            if (ArrayUtility.Contains <string>(this.serversList, this.serverAddress))
            {
                this.serversLv.row = ArrayUtility.IndexOf <string>(this.serversList, this.serverAddress);
            }
        }