Beispiel #1
0
        public static void ShowInformationMessage(FrameworkElement view)
        {
            var informationViewsettings = new ModalWindowSettings
            {
                Title      = LanguageDictionary.GetValue("InformationMessage"),
                ResizeMode = ResizeMode.CanResize,
                MinWidth   = 400
            };

            ShowModal(view, ControlsCreator.GetOkButton(CloseCurrentWindowCommand));
        }
Beispiel #2
0
        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)));
        }
Beispiel #3
0
        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));
 }
Beispiel #5
0
 public static FrameworkElement GetSimpleTextView(string languageKey, ModalWindowSettings settings, params object[] items)
 {
     return(new ConfirmationTextControl(LanguageDictionary.GetFormatValue(languageKey, items), settings));
 }
Beispiel #6
0
 public static FrameworkElement GetSimpleTextView(string languageKey, ModalWindowSettings settings = null)
 {
     return(new ConfirmationTextControl(LanguageDictionary.GetValue(languageKey), settings));
 }