示例#1
0
 public OperationViewModel()
 {
     OpenOperationCommand = new RaleyCommand(parm =>
     {
         IoCConteiner.Get <ApplicationViewModel>().ContentPageViewModel = new ContentPageViewModel
         {
             Parameters = Parameters,
             ReturnType = ReturnType,
             Name       = OperationName,
             Instance   = Instance
         };
     }
                                             );
 }
示例#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;
            });
        }
示例#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));
 }