public override void Execute(object parameter) { if (_aboutControl == null) _aboutControl = new AboutInfoControl(); string builderTitle = BuilderApplication.Instance != null && !string.IsNullOrWhiteSpace(BuilderApplication.Instance.TitleText) ? BuilderApplication.Instance.TitleText : ""; _aboutControl.DataContext = new AboutInfo() { Title = builderTitle, Version = ApplicationHelper.GetExecutingAssemblyVersion(), SilverlightApiVersion = ApplicationHelper.GetSilverlightAPIVersion(), }; if (Application.Current != null && Application.Current.Resources != null) { if (Application.Current.Resources.Contains(ABOUT_DIALOG_STYLE)) { Style style = Application.Current.Resources[ABOUT_DIALOG_STYLE] as Style; if (style != null) _aboutControl.Style = style; } if (Application.Current.Resources.Contains(DESIGN_HOST_BACKGROUND_TEXT)) { SolidColorBrush foreground = Application.Current.Resources[DESIGN_HOST_BACKGROUND_TEXT] as SolidColorBrush; if (foreground != null) _aboutControl.Foreground = foreground; } } BuilderApplication.Instance.ShowWindow(Strings.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); }
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); }