Example #1
0
 protected override void OnFormClosed(FormClosedEventArgs formClosedEventArgs_0)
 {
     base.OnFormClosed(formClosedEventArgs_0);
     if (threadLogin != null)
     {
         MethodManager.InvokeNoneException(() => this.threadLogin.Abort());
     }
 }
Example #2
0
 protected override void Dispose(bool disposing)
 {
     MethodManager.InvokeNoneException(() => this.threadLogin.Abort());
     if (disposing && (this.components != null))
     {
         this.components.Dispose();
     }
     base.Dispose(disposing);
 }
Example #3
0
 public static void CreateLinkManFile()
 {
     MethodManager.InvokeNoneException(delegate {
         if (!File.Exists(AppDomain.CurrentDomain.BaseDirectory + @"Data\LinkMan.txt"))
         {
             using (StreamWriter writer = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory + @"Data\LinkMan.txt", true, Encoding.UTF8))
             {
                 writer.WriteLine("您可以通过修改本文件临时添加乘车人信息,每一行为一条记录。格式为:姓名(空格)身份证号(空格)电话号码。第一条为样本。");
                 writer.WriteLine("阿里巴巴 622101195001016626 13800138000");
                 writer.Flush();
                 writer.Close();
             }
         }
     });
 }