/// <summary> /// Method to invoke when the AboutCommand command is executed. /// </summary> private async Task OnAboutCommandExecuteAsync() { //this isn't a Catel window so it is shown different then other "views". //this is just some open source Aboutbox AboutControlView about = new AboutControlView(); AboutControlViewModel vm = (AboutControlViewModel)about.FindResource("ViewModel"); // setting several properties here vm.ApplicationLogo = new BitmapImage(new System.Uri("pack://application:,,,/Resources/monitor.png")); vm.Title = "Extended Logging for Kflop"; vm.Description = "Use for extended logging of Kflop variables. First version by Greg Carter. " + "Uses several open source projects including:\n - Catel (for WPF MVVM)\n - OxyPlot (for plotting)\n" + " - AvalonEdit (for C program syntax display)\n - Orc Controls (for log viewer)\n - AboutBox " + "(for this about box)\n" + "All icons are from others see icons.txt in install directory."; // ... vm.AdditionalNotes = "Use at your own risk! Support may be provided through Yahoo Dynomotion group."; vm.Publisher = "Greg Carter"; vm.HyperlinkText = "http://www.dnyomotion.com"; //vm.PublisherLogo = new BitmapImage(new System.Uri("pack://application:,,,/Resources/graph.png")); //vm.Window.Foreground = System.Windows.Media.Brushes.White; vm.Window.Content = about; vm.Window.Show(); }
private void aboutProgram_Click(object sender, RoutedEventArgs e) { about = new AboutControlView(); vm = (AboutControlViewModel)about.FindResource("ViewModel"); vm.ApplicationLogo = new BitmapImage(new System.Uri("pack://*****:*****@gmail.com"; vm.Title = "Планирование турниров по бадминтону"; vm.Window.Content = about; vm.Window.Show(); }
private void AboutButton_OnClick(object sender, RoutedEventArgs e) { BitmapImage appBi = new BitmapImage(new System.Uri("pack://application:,,,/Assets/Images/logo-large.png")); BitmapImage cBi = new BitmapImage(new System.Uri("pack://application:,,,/Assets/Images/tolache-logo.png")); AboutControlView about = new AboutControlView(); AboutControlViewModel vm = (AboutControlViewModel)about.FindResource("ViewModel"); vm.IsSemanticVersioning = true; vm.ApplicationLogo = appBi; vm.PublisherLogo = cBi; vm.HyperlinkText = "https://github.com/tolache"; vm.Window.Content = about; vm.Window.Show(); }
public void Show() { AboutControlView about = new AboutControlView(); AboutControlViewModel vm = (AboutControlViewModel)about.FindResource("ViewModel"); vm.AdditionalNotes = this.AdditionalNotes; vm.ApplicationLogo = this.ApplicationLogo; vm.Copyright = this.Copyright; vm.Description = this.Description; vm.HyperlinkText = this.HyperlinkText; vm.Publisher = this.Publisher; vm.PublisherLogo = this.PublisherLogo; vm.Title = this.Title; vm.Version = this.Version; vm.Window.Content = about; vm.Window.Show(); }
private void hyperlink_ShowAbout(object sender, System.Windows.Navigation.RequestNavigateEventArgs e) { BitmapImage appBi = new BitmapImage(new System.Uri("pack://application:,,,/Asset/egg1.ico")); BitmapImage cBi = new BitmapImage(new System.Uri("pack://application:,,,/Asset/egg1.ico")); AboutControlView about = new AboutControlView(); AboutControlViewModel vm = (AboutControlViewModel)about.FindResource("ViewModel"); vm.IsSemanticVersioning = true; vm.ApplicationLogo = appBi; vm.PublisherLogo = cBi; vm.HyperlinkText = "https://github.com/kmaki565/BentoEx"; vm.Title = "BentoEx (おべんとサッ!と)"; vm.AdditionalNotes = ""; vm.Window.Content = about; vm.Window.Show(); e.Handled = true; }
private void About_OnClick(object sender, RoutedEventArgs e) { AboutControlView about = new AboutControlView(); AboutControlViewModel vm = (AboutControlViewModel)about.FindResource("ViewModel"); vm.ApplicationLogo = CreateBitmapSourceFromGdiBitmap(Properties.Resources.pc); vm.Description = "Jasio.NET - невелика утиліта, що дозволяє переглянути базову інформацію про ПК, перевірити контрольні суми" + "файлів, а також S.M.A.R.T" + " і простір жорсткого диску. "; vm.Publisher = "RSV"; vm.Title = "Jasio.NET"; vm.Version = "1.0b"; vm.Copyright = "RSV"; vm.AdditionalNotes = ""; vm.Window.Content = about; vm.Window.Show(); }