public static void ShowInformationMessage(FrameworkElement view) { var informationViewsettings = new ModalWindowSettings { Title = LanguageDictionary.GetValue("InformationMessage"), ResizeMode = ResizeMode.CanResize, MinWidth = 400 }; ShowModal(view, ControlsCreator.GetOkButton(CloseCurrentWindowCommand)); }
public static void ShowErrorMessage(string languageKey, params object[] items) { var errorViewsettings = new ModalWindowSettings { Title = LanguageDictionary.GetValue("Error"), ResizeMode = ResizeMode.CanResize }; var view = ControlsCreator.GetSimpleTextView(languageKey, errorViewsettings, items); ShowModal(view, ControlsCreator.GetCustomCancelButton(LanguageDictionary.GetFormatValue("Close", items))); }
public static void ShowInformationMessage(string languageKey, params object[] items) { var informationViewsettings = new ModalWindowSettings { Title = LanguageDictionary.GetValue("InformationMessage"), ResizeMode = ResizeMode.CanResize, MinWidth = 400 }; var view = ControlsCreator.GetSimpleTextView(languageKey, informationViewsettings, items); ShowModal(view, ControlsCreator.GetOkButton(CloseCurrentWindowCommand)); }
public override object ProvideValue(IServiceProvider serviceProvider) { return(LanguageDictionary.GetValue(Key)); }
public static FrameworkElement GetSimpleTextView(string languageKey, ModalWindowSettings settings, params object[] items) { return(new ConfirmationTextControl(LanguageDictionary.GetFormatValue(languageKey, items), settings)); }
public static FrameworkElement GetSimpleTextView(string languageKey, ModalWindowSettings settings = null) { return(new ConfirmationTextControl(LanguageDictionary.GetValue(languageKey), settings)); }