Ejemplo n.º 1
0
 /// <summary>
 /// 停止打卡程序
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void stop_checkin_btn_Click(object sender, EventArgs e)
 {
     SingletonProxyServer.OperationType = OperationType.Stopped;
     SingletonProxyServer.ServerStop();
     //this.start_chekcin_btn.Enabled = true;
     //this.stop_checkin_btn.Enabled = false;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 窗体关闭时停止打卡
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Main_FormClosed(object sender, FormClosedEventArgs e)
 {
     SingletonProxyServer.ServerStop();
 }