コード例 #1
0
ファイル: ConnectionAwaitForm.cs プロジェクト: romanchom/Luna
 private void TryConnect()
 {
     while (!this.shouldExit)
     {
         try
         {
             LunaConnectionBase luna = new LunaUdp();
             base.BeginInvoke((Action) (() => {
                 Program.mainContext.AddForm(new SessionForm(luna));
                 Close();
             })
             );
             this.shouldExit = true;
         }
         catch
         {
         }
     }
 }
コード例 #2
0
 private void TryConnect()
 {
     while (!this.shouldExit)
     {
         try
         {
             LunaConnectionBase luna = new LunaUdp();
             base.BeginInvoke((Action)(() => {
                 Program.mainContext.AddForm(new SessionForm(luna));
                 Close();
             })
                              );
             this.shouldExit = true;
         }
         catch
         {
         }
     }
 }