public SelServ(ServFinder finder) { serv = finder; InitializeComponent(); renew = new ServFinder.Renew(Serv_renew); serv.renew += renew; renew(); }
public MainWindow() { InitializeComponent(); Signup signup = new Signup(); bool? result = signup.ShowDialog(); if (result != null && result.Value) { sign_name = signup.name; serv = new ServFinder(); serv.start(); statusBox.Text += "SM4文件加密服务 v1.0\n"; } else { Close(); } }