mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-12 05:25:37 +02:00
143 lines
6.6 KiB
C#
143 lines
6.6 KiB
C#
using System.Windows.Forms;
|
|
|
|
namespace Ninjacrab.PersistentWindows.SystrayShell
|
|
{
|
|
static class Globals
|
|
{
|
|
//use Application.ProductVersion instead
|
|
//public const string Version = "";
|
|
}
|
|
|
|
partial class SystrayForm
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
private System.Windows.Forms.NotifyIcon notifyIconMain;
|
|
private System.Windows.Forms.ContextMenuStrip contextMenuStripSysTray;
|
|
|
|
private System.Windows.Forms.ToolStripMenuItem captureToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem restoreToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem diagnosticsToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
|
|
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem0;
|
|
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
|
|
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SystrayForm));
|
|
this.notifyIconMain = new System.Windows.Forms.NotifyIcon(this.components);
|
|
this.contextMenuStripSysTray = new System.Windows.Forms.ContextMenuStrip(this.components);
|
|
this.diagnosticsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.captureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.restoreToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.toolStripMenuItem0 = new System.Windows.Forms.ToolStripSeparator();
|
|
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
|
|
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
|
|
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.contextMenuStripSysTray.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// notifyIconMain
|
|
//
|
|
this.notifyIconMain.ContextMenuStrip = this.contextMenuStripSysTray;
|
|
this.notifyIconMain.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIconMain.Icon")));
|
|
this.notifyIconMain.Text = $"Persistent Windows {Application.ProductVersion}";
|
|
this.notifyIconMain.Visible = true;
|
|
//
|
|
// contextMenuStripSysTray
|
|
//
|
|
this.contextMenuStripSysTray.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.captureToolStripMenuItem,
|
|
this.toolStripMenuItem0,
|
|
this.restoreToolStripMenuItem,
|
|
this.toolStripMenuItem1,
|
|
this.diagnosticsToolStripMenuItem,
|
|
this.toolStripMenuItem2,
|
|
this.exitToolStripMenuItem});
|
|
this.contextMenuStripSysTray.Name = "contextMenuStripSysTray";
|
|
this.contextMenuStripSysTray.Size = new System.Drawing.Size(136, 108);
|
|
|
|
// capture
|
|
//
|
|
this.captureToolStripMenuItem.Name = "capture";
|
|
this.captureToolStripMenuItem.Size = new System.Drawing.Size(135, 22);
|
|
this.captureToolStripMenuItem.Text = "&Capture windows";
|
|
this.captureToolStripMenuItem.Click += new System.EventHandler(this.CaptureWindowClickHandler);
|
|
//
|
|
// toolStripMenuItem
|
|
//
|
|
this.toolStripMenuItem0.Name = "toolStripMenuItem0";
|
|
this.toolStripMenuItem0.Size = new System.Drawing.Size(132, 6);
|
|
|
|
// restore
|
|
//
|
|
this.restoreToolStripMenuItem.Name = "restore";
|
|
this.restoreToolStripMenuItem.Size = new System.Drawing.Size(135, 22);
|
|
this.restoreToolStripMenuItem.Text = "&Restore windows";
|
|
this.restoreToolStripMenuItem.Click += new System.EventHandler(this.RestoreWindowClickHandler);
|
|
//
|
|
// toolStripMenuItem
|
|
//
|
|
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
|
this.toolStripMenuItem1.Size = new System.Drawing.Size(132, 6);
|
|
|
|
//
|
|
// diagnosticsToolStripMenuItem
|
|
//
|
|
this.diagnosticsToolStripMenuItem.Name = "diagnosticsToolStripMenuItem";
|
|
this.diagnosticsToolStripMenuItem.Size = new System.Drawing.Size(135, 22);
|
|
this.diagnosticsToolStripMenuItem.Text = "&Diagnostics";
|
|
this.diagnosticsToolStripMenuItem.Click += new System.EventHandler(this.DiagnosticsToolStripMenuItemClickHandler);
|
|
//
|
|
// toolStripMenuItem2
|
|
//
|
|
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
|
|
this.toolStripMenuItem2.Size = new System.Drawing.Size(132, 6);
|
|
//
|
|
// exitToolStripMenuItem
|
|
//
|
|
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
|
this.exitToolStripMenuItem.Size = new System.Drawing.Size(135, 22);
|
|
this.exitToolStripMenuItem.Text = "&Exit";
|
|
this.exitToolStripMenuItem.Click += new System.EventHandler(this.ExitToolStripMenuItemClickHandler);
|
|
//
|
|
// SystrayForm
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(284, 261);
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
this.Name = "SystrayForm";
|
|
this.Text = $"Persistent Windows {Application.ProductVersion}";
|
|
this.contextMenuStripSysTray.ResumeLayout(false);
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|
|
|