C# Class WSWinForm.FrmMain

Inheritance: System.Windows.Forms.Form
显示文件 Open project: CrazyJson/TaskManager

Public Methods

Method Description
FrmMain ( string args ) : System

Private Methods

Method Description
GetServiceName ( string serviceFileName ) : string

获取Windows服务的名称

ServiceIsExisted ( string serviceName ) : bool

判断服务是否已经存在

Vaild ( ) : bool

操作前校验

btnBrowser_Click ( object sender, EventArgs e ) : void

选择文件

btnInstall_Click ( object sender, EventArgs e ) : void

安装服务

btnRun_Click ( object sender, EventArgs e ) : void

运行服务

btnStop_Click ( object sender, EventArgs e ) : void

停止服务

btnUninstall_Click ( object sender, EventArgs e ) : void

卸载服务

mBackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void

卸载服务

mBackgroundWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void

Method Details

FrmMain() public method

public FrmMain ( string args ) : System
args string
return System