public void UruchomInfoOProgramie() { _aboutProgram = new AboutProgram(); _aboutProgram.ShowDialog(); }
private void About_Item(object sender, RoutedEventArgs e) { AboutProgram window = new AboutProgram(); window.ShowDialog(); }
private void InitNotifyIcon(NotifyIcon icon) { icon.Icon = PowerSupplyNotifier.Properties.Resources.app_icon; icon.Visible = true; icon.MouseClick += (_, args) => { if (args.Button == MouseButtons.Left) { SettingsWindow.ShowUnique(); } }; icon.ContextMenuStrip = new ContextMenuStrip { Items = { new ToolStripMenuItem(StringResources.Settings_Title, null, (_, __) => SettingsWindow.ShowUnique()), new ToolStripMenuItem(StringResources.AboutProgram_Title, null, (_, __) => AboutProgram.ShowUnique()), new ToolStripSeparator(), new ToolStripMenuItem(StringResources.Exit, null, (_, __) => Shutdown(0)) } }; }
private void aboutProgramToolStripMenuItem_Click(object sender, EventArgs e) { var aboutProgram = new AboutProgram(); aboutProgram.ShowDialog(this); }
/// <summary> /// О программе /// </summary> private void MenuAbout_Click(object sender, RoutedEventArgs e) { AboutProgram about = new AboutProgram(); about.ShowDialog(); }