public void LoadSettings()
 {
     this.UserName = BsaContext.GetUserName();
     this.Url      = $"http://{BsaContext.GetURL()}:8081";
     this.Role     = BsaContext.GetUserRole();
     this.IP       = AddressResolving.GetIp4AddressesString();
 }
        public void SaveJob(Job job)
        {
            if (BsaContext.GetUserRole() != ApplicationRole.Standalone)
            {
                CommunicationProxy.SendJobChange(job);
            }

            if (BsaContext.GetUserRole() != ApplicationRole.Client)
            {
                this.SaveJobLocal(job);
            }
        }
Esempio n. 3
0
        public void SaveForces(Force forces)
        {
            if (BsaContext.GetUserRole() != ApplicationRole.Standalone)
            {
                CommunicationProxy.SendForceChanged(forces);
            }

            if (BsaContext.GetUserRole() != ApplicationRole.Client)
            {
                this.SaveForcesLocal(forces);
            }
        }