Esempio n. 1
0
 public override void navigatedTo()
 {
     base.navigatedTo();
     if (!this.needsAuthentication)
     {
         this.moveToActiveState();
     }
     else
     {
         this.state = UploadServerDaemon.UploadServerState.Menu;
     }
 }
Esempio n. 2
0
 private void moveToActiveState()
 {
     this.state = UploadServerDaemon.UploadServerState.Active;
     Programs.sudo(this.os, (Action)(() =>
     {
         Programs.cd(new string[2]
         {
             "cd",
             this.Foldername + "/Uploads"
         }, this.os);
         this.os.display.command = this.name;
     }));
     if (this.comp.userLoggedIn)
     {
         return;
     }
     this.comp.userLoggedIn = true;
 }