コード例 #1
0
 public GoEventArgs(cred _cred, List <string> _files, string _container, int _numberSimsPerJob, int _hoursPerJob)
 {
     cred             = _cred;
     files            = _files;
     container        = _container;
     numberSimsPerJob = _numberSimsPerJob;
     hoursPerJob      = _hoursPerJob;
 }
コード例 #2
0
        public async void getRemoteVersions(cred cred)
        {
            List <string> versions = new List <string>();

            try
            {
                versions = await Task.Run <List <string> >(() =>
                {
                    server.cred = cred;
                    return(server.getRemoteVersions());
                });
            } catch (Exception e) { logMessage(e.Message); }

            Application.Invoke(delegate {
                MainClass.win.OnGetRemoteVersionsFinished(versions);
            });
        }
コード例 #3
0
 public ApsimHPC.cred getCreds()
 {
     ApsimHPC.cred cred = new ApsimHPC.cred();
     if (this.radiobutton1.Active)
     {
         cred.remoteHost = "tinaroo.rcc.uq.edu.au";
     }
     else if (this.radiobutton2.Active)
     {
         cred.remoteHost = "awoonga.qriscloud.org.au";
     }
     cred.username = this.username.Text;
     cred.password = this.password.Text;
     Configuration.Instance.SetSetting("remoteCluster", cred.remoteHost);
     Configuration.Instance.SetSetting("remoteUser", cred.username);
     return(cred);
 }