|
|
|
|
namespace POSV.WindowsServiceManager
|
|
|
|
|
{
|
|
|
|
|
partial class MainForm
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Required designer variable.
|
|
|
|
|
/// </summary>
|
|
|
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
|
|
|
|
|
|
/// <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(MainForm));
|
|
|
|
|
this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
|
|
|
|
|
this.WindowsService = new System.Windows.Forms.GroupBox();
|
|
|
|
|
this.StopService = new System.Windows.Forms.Button();
|
|
|
|
|
this.StartService = new System.Windows.Forms.Button();
|
|
|
|
|
this.UninstallService = new System.Windows.Forms.Button();
|
|
|
|
|
this.InstallService = new System.Windows.Forms.Button();
|
|
|
|
|
this.updatePortBt = new System.Windows.Forms.Button();
|
|
|
|
|
this.edPort = new System.Windows.Forms.TextBox();
|
|
|
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
|
|
|
this.UpdateUiTimer = new System.Windows.Forms.Timer(this.components);
|
|
|
|
|
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
|
|
|
|
|
this.lblInfo = new System.Windows.Forms.ToolStripStatusLabel();
|
|
|
|
|
this.WindowsService.SuspendLayout();
|
|
|
|
|
this.statusStrip1.SuspendLayout();
|
|
|
|
|
this.SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// notifyIcon
|
|
|
|
|
//
|
|
|
|
|
this.notifyIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon.Icon")));
|
|
|
|
|
this.notifyIcon.Text = "巨为服务管理器";
|
|
|
|
|
this.notifyIcon.Visible = true;
|
|
|
|
|
this.notifyIcon.Click += new System.EventHandler(this.NotifyIconClick);
|
|
|
|
|
this.notifyIcon.DoubleClick += new System.EventHandler(this.NotifyIconDoubleClick);
|
|
|
|
|
//
|
|
|
|
|
// WindowsService
|
|
|
|
|
//
|
|
|
|
|
this.WindowsService.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
|
|
|
| System.Windows.Forms.AnchorStyles.Left)
|
|
|
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
|
|
|
this.WindowsService.Controls.Add(this.StopService);
|
|
|
|
|
this.WindowsService.Controls.Add(this.StartService);
|
|
|
|
|
this.WindowsService.Controls.Add(this.UninstallService);
|
|
|
|
|
this.WindowsService.Controls.Add(this.InstallService);
|
|
|
|
|
this.WindowsService.Location = new System.Drawing.Point(15, 51);
|
|
|
|
|
this.WindowsService.Name = "WindowsService";
|
|
|
|
|
this.WindowsService.Size = new System.Drawing.Size(289, 169);
|
|
|
|
|
this.WindowsService.TabIndex = 7;
|
|
|
|
|
this.WindowsService.TabStop = false;
|
|
|
|
|
this.WindowsService.Text = "Windows服务";
|
|
|
|
|
//
|
|
|
|
|
// StopService
|
|
|
|
|
//
|
|
|
|
|
this.StopService.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
|
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
|
|
|
this.StopService.Enabled = false;
|
|
|
|
|
this.StopService.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
|
|
|
|
this.StopService.Location = new System.Drawing.Point(6, 126);
|
|
|
|
|
this.StopService.Name = "StopService";
|
|
|
|
|
this.StopService.Size = new System.Drawing.Size(276, 30);
|
|
|
|
|
this.StopService.TabIndex = 3;
|
|
|
|
|
this.StopService.Text = "停止服务";
|
|
|
|
|
this.StopService.UseVisualStyleBackColor = true;
|
|
|
|
|
this.StopService.Click += new System.EventHandler(this.StopServiceClick);
|
|
|
|
|
//
|
|
|
|
|
// StartService
|
|
|
|
|
//
|
|
|
|
|
this.StartService.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
|
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
|
|
|
this.StartService.Enabled = false;
|
|
|
|
|
this.StartService.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
|
|
|
|
this.StartService.Location = new System.Drawing.Point(7, 90);
|
|
|
|
|
this.StartService.Name = "StartService";
|
|
|
|
|
this.StartService.Size = new System.Drawing.Size(276, 30);
|
|
|
|
|
this.StartService.TabIndex = 2;
|
|
|
|
|
this.StartService.Text = "启动服务";
|
|
|
|
|
this.StartService.UseVisualStyleBackColor = true;
|
|
|
|
|
this.StartService.Click += new System.EventHandler(this.StartServiceClick);
|
|
|
|
|
//
|
|
|
|
|
// UninstallService
|
|
|
|
|
//
|
|
|
|
|
this.UninstallService.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
|
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
|
|
|
this.UninstallService.Enabled = false;
|
|
|
|
|
this.UninstallService.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
|
|
|
|
this.UninstallService.Location = new System.Drawing.Point(7, 54);
|
|
|
|
|
this.UninstallService.Name = "UninstallService";
|
|
|
|
|
this.UninstallService.Size = new System.Drawing.Size(276, 30);
|
|
|
|
|
this.UninstallService.TabIndex = 1;
|
|
|
|
|
this.UninstallService.Text = "卸载服务";
|
|
|
|
|
this.UninstallService.UseVisualStyleBackColor = true;
|
|
|
|
|
this.UninstallService.Click += new System.EventHandler(this.UninstallServiceClick);
|
|
|
|
|
//
|
|
|
|
|
// InstallService
|
|
|
|
|
//
|
|
|
|
|
this.InstallService.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
|
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
|
|
|
this.InstallService.Enabled = false;
|
|
|
|
|
this.InstallService.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
|
|
|
|
this.InstallService.Location = new System.Drawing.Point(7, 18);
|
|
|
|
|
this.InstallService.Name = "InstallService";
|
|
|
|
|
this.InstallService.Size = new System.Drawing.Size(276, 30);
|
|
|
|
|
this.InstallService.TabIndex = 0;
|
|
|
|
|
this.InstallService.Text = "安装服务";
|
|
|
|
|
this.InstallService.UseVisualStyleBackColor = true;
|
|
|
|
|
this.InstallService.Click += new System.EventHandler(this.InstallServiceClick);
|
|
|
|
|
//
|
|
|
|
|
// updatePortBt
|
|
|
|
|
//
|
|
|
|
|
this.updatePortBt.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
|
|
|
|
this.updatePortBt.Location = new System.Drawing.Point(180, 16);
|
|
|
|
|
this.updatePortBt.Name = "updatePortBt";
|
|
|
|
|
this.updatePortBt.Size = new System.Drawing.Size(118, 22);
|
|
|
|
|
this.updatePortBt.TabIndex = 10;
|
|
|
|
|
this.updatePortBt.Text = "更新端口";
|
|
|
|
|
this.updatePortBt.UseVisualStyleBackColor = true;
|
|
|
|
|
this.updatePortBt.Click += new System.EventHandler(this.UpdatePortBtClick);
|
|
|
|
|
//
|
|
|
|
|
// edPort
|
|
|
|
|
//
|
|
|
|
|
this.edPort.Location = new System.Drawing.Point(58, 16);
|
|
|
|
|
this.edPort.MaxLength = 5;
|
|
|
|
|
this.edPort.Multiline = true;
|
|
|
|
|
this.edPort.Name = "edPort";
|
|
|
|
|
this.edPort.Size = new System.Drawing.Size(116, 22);
|
|
|
|
|
this.edPort.TabIndex = 9;
|
|
|
|
|
this.edPort.Text = "2018";
|
|
|
|
|
//
|
|
|
|
|
// label1
|
|
|
|
|
//
|
|
|
|
|
this.label1.AutoSize = true;
|
|
|
|
|
this.label1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
|
|
|
|
this.label1.Location = new System.Drawing.Point(17, 19);
|
|
|
|
|
this.label1.Name = "label1";
|
|
|
|
|
this.label1.Size = new System.Drawing.Size(35, 12);
|
|
|
|
|
this.label1.TabIndex = 8;
|
|
|
|
|
this.label1.Text = "端口:";
|
|
|
|
|
//
|
|
|
|
|
// UpdateUiTimer
|
|
|
|
|
//
|
|
|
|
|
this.UpdateUiTimer.Tick += new System.EventHandler(this.UpdateUiTimerTick);
|
|
|
|
|
//
|
|
|
|
|
// statusStrip1
|
|
|
|
|
//
|
|
|
|
|
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
|
|
|
this.lblInfo});
|
|
|
|
|
this.statusStrip1.Location = new System.Drawing.Point(0, 223);
|
|
|
|
|
this.statusStrip1.Name = "statusStrip1";
|
|
|
|
|
this.statusStrip1.Size = new System.Drawing.Size(317, 22);
|
|
|
|
|
this.statusStrip1.TabIndex = 11;
|
|
|
|
|
this.statusStrip1.Text = "statusStrip1";
|
|
|
|
|
//
|
|
|
|
|
// lblInfo
|
|
|
|
|
//
|
|
|
|
|
this.lblInfo.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
|
|
this.lblInfo.Name = "lblInfo";
|
|
|
|
|
this.lblInfo.Size = new System.Drawing.Size(91, 17);
|
|
|
|
|
this.lblInfo.Text = "巨为服务中心";
|
|
|
|
|
//
|
|
|
|
|
// MainForm
|
|
|
|
|
//
|
|
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
|
|
this.ClientSize = new System.Drawing.Size(317, 245);
|
|
|
|
|
this.Controls.Add(this.statusStrip1);
|
|
|
|
|
this.Controls.Add(this.updatePortBt);
|
|
|
|
|
this.Controls.Add(this.edPort);
|
|
|
|
|
this.Controls.Add(this.label1);
|
|
|
|
|
this.Controls.Add(this.WindowsService);
|
|
|
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
|
|
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
|
|
|
this.MaximizeBox = false;
|
|
|
|
|
this.Name = "MainForm";
|
|
|
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
|
|
|
this.Text = "巨为服务管理器";
|
|
|
|
|
this.WindowsService.ResumeLayout(false);
|
|
|
|
|
this.statusStrip1.ResumeLayout(false);
|
|
|
|
|
this.statusStrip1.PerformLayout();
|
|
|
|
|
this.ResumeLayout(false);
|
|
|
|
|
this.PerformLayout();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private System.Windows.Forms.NotifyIcon notifyIcon;
|
|
|
|
|
private System.Windows.Forms.GroupBox WindowsService;
|
|
|
|
|
private System.Windows.Forms.Button StopService;
|
|
|
|
|
private System.Windows.Forms.Button StartService;
|
|
|
|
|
private System.Windows.Forms.Button UninstallService;
|
|
|
|
|
private System.Windows.Forms.Button InstallService;
|
|
|
|
|
private System.Windows.Forms.Button updatePortBt;
|
|
|
|
|
private System.Windows.Forms.TextBox edPort;
|
|
|
|
|
private System.Windows.Forms.Label label1;
|
|
|
|
|
private System.Windows.Forms.Timer UpdateUiTimer;
|
|
|
|
|
private System.Windows.Forms.StatusStrip statusStrip1;
|
|
|
|
|
private System.Windows.Forms.ToolStripStatusLabel lblInfo;
|
|
|
|
|
}
|
|
|
|
|
}
|