Ejemplo n.º 1
0
        public override void Execute(object parameter)
        {
            if (_aboutControl == null)
            {
                _aboutControl = new AboutInfoControl();
            }

            string builderTitle = ApplicationHelper.GetViewerApplicationTitle();

            if (string.IsNullOrWhiteSpace(builderTitle))
            {
                builderTitle = string.Empty;
            }
            AboutInfo info = new AboutInfo()
            {
                Title = builderTitle,
            };

            info.Version = ApplicationHelper.GetExecutingAssemblyVersion();

            _aboutControl.DataContext = info;

            Style style = LayoutStyleHelper.Instance.GetStyle(ABOUT_DIALOG_STYLE);

            if (style != null)
            {
                _aboutControl.Style = style;
            }

            MapApplication.Current.ShowWindow(LocalizableStrings.GetString("AboutDialogTitle") + " " + builderTitle, _aboutControl);
        }
        public override void Execute(object parameter)
        {
            if (_aboutControl == null)
                _aboutControl = new AboutInfoControl();

            string builderTitle = ApplicationHelper.GetViewerApplicationTitle();
            if (string.IsNullOrWhiteSpace(builderTitle))
                builderTitle = string.Empty;
            AboutInfo info = new AboutInfo()
            {
                Title = builderTitle,
            };
            info.Version = ApplicationHelper.GetExecutingAssemblyVersion();

            _aboutControl.DataContext = info;

            Style style = LayoutStyleHelper.Instance.GetStyle(ABOUT_DIALOG_STYLE);
            if (style != null)
                _aboutControl.Style = style;

            MapApplication.Current.ShowWindow(LocalizableStrings.GetString("AboutDialogTitle") + " " + builderTitle, _aboutControl);
        }