Beispiel #1
0
 public OperationViewModel()
 {
     OpenOperationCommand = new RaleyCommand(parm =>
     {
         IoCConteiner.Get <ApplicationViewModel>().ContentPageViewModel = new ContentPageViewModel
         {
             Parameters = Parameters,
             ReturnType = ReturnType,
             Name       = OperationName,
             Instance   = Instance
         };
     }
                                             );
 }
Beispiel #2
0
        private async Task Load(object parm)
        {
            await RunCommand(() => this.LoginIsRuning, async() =>
            {
                IoCConteiner.Get <ApplicationViewModel>().ServicesListVisible = false;

                await Task.Delay(1000);
                var metadataLoader = new MetadataLoader(new MetadataSetCreator(HostAddress));
                ServiceProxyGenerator proxyGenerator = new ServiceProxyGenerator(metadataLoader);

                IoCConteiner.Get <ApplicationViewModel>().Services = proxyGenerator.CreateGenerator();
                IoCConteiner.Get <ApplicationViewModel>().HostAddressControlVisible = false;
                IoCConteiner.Get <ApplicationViewModel>().ServicesListVisible       = true;
            });
        }
Beispiel #3
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 public HostAddressEntryViewModel()
 {
     ShowEntryControlCommand = new RaleyCommand(parm => IoCConteiner.Get <ApplicationViewModel>().HostAddressControlVisible ^= true);
     LoadCommand             = new RaleyCommand(async(parm) => await Load(parm));
 }