Ejemplo n.º 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));
        }
Ejemplo n.º 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)));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 4
0
 public override object ProvideValue(IServiceProvider serviceProvider)
 {
     return(LanguageDictionary.GetValue(Key));
 }
Ejemplo n.º 5
0
 public static FrameworkElement GetSimpleTextView(string languageKey, ModalWindowSettings settings, params object[] items)
 {
     return(new ConfirmationTextControl(LanguageDictionary.GetFormatValue(languageKey, items), settings));
 }
Ejemplo n.º 6
0
 public static FrameworkElement GetSimpleTextView(string languageKey, ModalWindowSettings settings = null)
 {
     return(new ConfirmationTextControl(LanguageDictionary.GetValue(languageKey), settings));
 }