private void OnDeleteBaseValueExecute(object obj) { if (obj is IBaseValueViewModel baseValueViewModel) { BaseValuesViewModels.Remove(baseValueViewModel); } }
private void OnAddBaseValueExecute() { BaseValuesViewModels.Add(new BaseValueViewModel() { Name = StaticContainer.Container.Resolve <ILocalizerService>().GetLocalizedString("New") }); }
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); }