Пример #1
0
        public override void OnDialogOpened(IDialogParameters parameters)
        {
            if (parameters.ContainsKey("Title"))
            {
                Title = parameters.GetValue <string>("Title");
            }

            if (parameters.ContainsKey("Message"))
            {
                Message = parameters.GetValue <string>("Message");
            }
        }
Пример #2
0
        public override void OnDialogOpened(IDialogParameters parameters)
        {
            if (parameters.ContainsKey("Id"))
            {
                Id = parameters.GetValue <int>("Id");
            }

            if (parameters.ContainsKey("Value"))
            {
                var output = parameters.GetValue <GetTenantFeaturesEditOutput>("Value");

                featuresService.CreateFeatures(output.Features, output.FeatureValues);
            }
        }
 public void OnDialogOpened(IDialogParameters parameters)
 {
     if (parameters.ContainsKey("Content"))
     {
         Content = parameters.GetValue <string>("Content");
     }
 }
 public override void OnDialogOpened(IDialogParameters parameters)
 {
     if (parameters.ContainsKey("Value"))
     {
         AuditLog = parameters.GetValue <AuditLogListDto>("Value");
     }
 }
Пример #5
0
        public override void OnDialogOpened(IDialogParameters parameters)
        {
            if (parameters.ContainsKey("Value"))
            {
                Input = parameters.GetValue <OrganizationListModel>("Value");
            }
            else
            {
                IsNewOrganization = true;
                Input             = new OrganizationListModel();
            }

            if (parameters.ContainsKey("ParentId"))
            {
                ParentId = parameters.GetValue <long>("ParentId");
            }
        }
 public override void OnDialogOpened(IDialogParameters parameters)
 {
     if (parameters.ContainsKey("Value"))
     {
         var dynamicProperty = parameters.GetValue <DynamicPropertyDto>("Value");
         Model = Map <DynamicPropertyModel>(dynamicProperty);
     }
 }
Пример #7
0
 public void OnDialogOpened(IDialogParameters parameters)
 {
     //to constants
     if (parameters.ContainsKey("SharePinCommand"))
     {
         QrCodeData = parameters.GetValue <string>("SharePinCommand");
     }
 }
Пример #8
0
        public void OnDialogOpened(IDialogParameters parameters)
        {
            Options        = parameters.GetValue <IEnumerable <string> >("options");
            SelectedOption = Options.FirstOrDefault();

            Prompt = parameters.ContainsKey("prompt") ?
                     parameters.GetValue <string>("prompt") :
                     "Please choose one of the following possible paths. The folder will be created automatically";
        }
Пример #9
0
        public override async void OnDialogOpened(IDialogParameters parameters)
        {
            if (parameters.ContainsKey("Name"))
            {
                EntityFullName = parameters.GetValue <string>("Name");

                await GetAllPropertiesOfAnEntity();
            }
        }
        public override async void OnDialogOpened(IDialogParameters parameters)
        {
            await SetBusyAsync(async() =>
            {
                if (parameters.ContainsKey("Value"))
                {
                    var output = parameters.GetValue <GetUserPermissionsForEditOutput>("Value");
                    treesService.CreatePermissionTrees(output.Permissions, output.GrantedPermissionNames);
                }

                if (parameters.ContainsKey("Id"))
                {
                    Id = parameters.GetValue <long>("Id");
                }

                await Task.CompletedTask;
            });
        }
        public override async void OnDialogOpened(IDialogParameters parameters)
        {
            if (parameters.ContainsKey("Value"))
            {
                Id = parameters.GetValue <DynamicPropertyDto>("Value").Id;

                await SetBusyAsync(GetAllValuesOfDynamicProperty);
            }
        }
Пример #12
0
 public override void OnDialogOpened(IDialogParameters parameters)
 {
     if (parameters.ContainsKey("Value"))
     {
         var flatPermissions = parameters.GetValue <ListResultDto <FlatPermissionWithLevelDto> >("Value");
         var permissions     = flatPermissions.Items.Select(t => t as FlatPermissionDto).ToList();
         treesService.CreatePermissionTrees(permissions, new List <string>());
     }
 }
Пример #13
0
        public void OnDialogOpened(IDialogParameters parameters)
        {
            Performer = parameters.GetValue <PerformerViewModel>("performer");

            if (parameters.ContainsKey("countries"))
            {
                var countries = parameters.GetValue <IEnumerable <Country> >("countries");
                Countries = new ObservableCollection <Country>(countries);
            }
        }
Пример #14
0
        public void OnDialogOpened(IDialogParameters parameters)
        {
            if (parameters.ContainsKey(CustomDialog.KeyLogMessage))
            {
                var log = parameters.GetValue <Exception>(CustomDialog.KeyLogMessage);
                _logger.Report(log);

                LogMessage = log.Message;
            }
        }
Пример #15
0
 public virtual void OnDialogOpened(IDialogParameters parameters)
 {
     if (parameters.ContainsKey("Entity"))
     {
         Initilize(parameters.GetValue <TEntity>("Entity"));
     }
     else
     {
         Initilize();
     }
 }
        public void OnDialogOpened(IDialogParameters parameters)
        {
            Width.Value  = 200;
            Height.Value = 100;

            CustomDialogRegionManager.Value.RequestNavigate("CustomDialogRegion", nameof(SubaView));

            if (parameters?.ContainsKey("Input") ?? false)
            {
                Input.Value = parameters.GetValue <string>("Input");
            }
        }
Пример #17
0
 public void OnDialogOpened(IDialogParameters parameters)
 {
     if (parameters.ContainsKey("key"))
     {
         ButtonName  = "change";
         DoctorVisit = parameters.GetValue <DoctorVisit>("key");
     }
     else
     {
         ButtonName = "add";
     }
 }
Пример #18
0
 public void OnDialogOpened(IDialogParameters parameters)
 {
     if (parameters.ContainsKey("key"))
     {
         ButtonName      = "change";
         SelectedPatient = parameters.GetValue <Patient>("key");
     }
     else
     {
         ButtonName = "add";
     }
 }
Пример #19
0
 public override void OnDialogOpened(IDialogParameters parameters)
 {
     if (parameters.ContainsKey("Value"))
     {
         input.OrganizationUnitId = parameters.GetValue <long>("Id");
         var pagedResult = parameters.GetValue <PagedResultDto <NameValueDto> >("Value");
         dataPager.SetList(new PagedResultDto <ChooseItem>()
         {
             Items = pagedResult.Items.Select(t => new ChooseItem(t)).ToList()
         });
     }
 }
Пример #20
0
 public void OnDialogOpened(IDialogParameters parameters)
 {
     if (parameters.ContainsKey("key"))
     {
         ButtonName = "change";
         TDiagnosis = parameters.GetValue <Diagnosis>("key");
     }
     else
     {
         ButtonName = "add";
     }
 }
Пример #21
0
        public override void OnDialogOpened(IDialogParameters parameters)
        {
            base.OnDialogOpened(parameters);

            if (parameters == null)
            {
                return;
            }

            BookPath = parameters.GetValue <string>(ParameterNames.BookPath);

            if (parameters.ContainsKey(ParameterNames.NewBook))
            {
                EditBook = parameters.GetValue <Book>(ParameterNames.NewBook);
                ExecuteSaveCommand();
            }
            else if (parameters.ContainsKey(ParameterNames.LoadBook))
            {
                EditBook = parameters.GetValue <Book>(ParameterNames.LoadBook);
            }
        }
Пример #22
0
        public virtual void OnDialogOpened(IDialogParameters parameters)
        {
            if (parameters.ContainsKey("message"))
            {
                Message = parameters.GetValue <string>("message");
            }

            if (parameters.ContainsKey("title"))
            {
                Title = parameters.GetValue <string>("title");
            }

            if (parameters.ContainsKey("okcontent"))
            {
                OKContent = parameters.GetValue <string>("okcontent");
            }

            if (parameters.ContainsKey("cancelcontent"))
            {
                CancelContent = parameters.GetValue <string>("cancelcontent");
            }
        }
Пример #23
0
        public override void OnDialogOpened(IDialogParameters parameters)
        {
            string script = null;

            if (parameters?.ContainsKey(nameof(Script)) ?? false)
            {
                script = parameters.GetValue <string>(nameof(Script));
            }

            scriptDocument = new TextDocument()
            {
                Text = String.IsNullOrEmpty(script) ? String.Empty : script
            };
        }
Пример #24
0
        public override async void OnDialogOpened(IDialogParameters parameters)
        {
            await SetBusyAsync(async() =>
            {
                int?id = null;

                if (parameters != null && parameters.ContainsKey("Value"))
                {
                    id = parameters.GetValue <RoleListDto>("Value").Id;
                }
                var output = await appService.GetRoleForEdit(new NullableIdDto(id));
                Role       = Map <RoleEditModel>(output.Role);
                treesService.CreatePermissionTrees(output.Permissions, output.GrantedPermissionNames);
            });
        }
        public override async void OnDialogOpened(IDialogParameters parameters)
        {
            await SetBusyAsync(async() =>
            {
                int?id = null;
                if (parameters.ContainsKey("Value"))
                {
                    id = parameters.GetValue <ApplicationLanguageListDto>("Value").Id;
                }

                await WebRequest.Execute(() =>
                                         appService.GetLanguageForEdit(new NullableIdDto(id)),
                                         GetLanguageForEditSuccessed);
            });
        }
Пример #26
0
        public override void OnDialogOpened(IDialogParameters parameters)
        {
            if (parameters.ContainsKey("Value"))
            {
                SourceName     = parameters.GetValue <string>("SourceName");
                BaseLanguage   = parameters.GetValue <LanguageStruct>("Base");
                TargetLanguage = parameters.GetValue <LanguageStruct>("Target");

                var lang = parameters.GetValue <LanguageTextListDto>("Value");

                Key         = lang.Key;
                BaseValue   = lang.BaseValue;
                TargetValue = lang.TargetValue;
            }
        }