Пример #1
0
        public void UruchomInfoOProgramie()
        {
            _aboutProgram = new AboutProgram();

            _aboutProgram.ShowDialog();
        }
Пример #2
0
        private void About_Item(object sender, RoutedEventArgs e)
        {
            AboutProgram window = new AboutProgram();

            window.ShowDialog();
        }
Пример #3
0
        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))
                }
            };
        }
Пример #4
0
        private void aboutProgramToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var aboutProgram = new AboutProgram();

            aboutProgram.ShowDialog(this);
        }
Пример #5
0
        /// <summary>
        /// О программе
        /// </summary>
        private void MenuAbout_Click(object sender, RoutedEventArgs e)
        {
            AboutProgram about = new AboutProgram();

            about.ShowDialog();
        }