Пример #1
0
 private void OnDeleteBaseValueExecute(object obj)
 {
     if (obj is IBaseValueViewModel baseValueViewModel)
     {
         BaseValuesViewModels.Remove(baseValueViewModel);
     }
 }
Пример #2
0
 private void OnAddBaseValueExecute()
 {
     BaseValuesViewModels.Add(new BaseValueViewModel()
     {
         Name = StaticContainer.Container.Resolve <ILocalizerService>().GetLocalizedString("New")
     });
 }
Пример #3
0
        private bool CheckValuesFilled()
        {
            if (!BaseValuesViewModels.All(model => model.IsBaseValuesMemoryFilled))
            {
                _message = StaticContainer.Container.Resolve <ILocalizerService>().GetLocalizedString(ApplicationGlobalNames.StatusMessages.VALUES_MUST_BE_FILLED);
                RaisePropertyChanged(nameof(Message));
                return(false);
            }

            return(true);
        }