コード例 #1
0
ファイル: LibFormBase.cs プロジェクト: zyylonghai/BWYSDP
 public FormCommunicationLine(object caller, object called, ParamContainer paramcontainer)
 {
     this._called       = called as LibFormBase;
     this._caller       = caller as LibFormBase;
     this._paramContain = paramcontainer;
     if (called != null)
     {
         this._called.FormClosing += new FormClosingEventHandler(called_FormClosing);
         this._called.Load        += new EventHandler(called_Load);
     }
 }
コード例 #2
0
ファイル: LibFormBase.cs プロジェクト: zyylonghai/BWYSDP
 public static ParamContainer GetInstance()
 {
     if (_paramContainer == null)
     {
         lock (locker)
         {
             if (_paramContainer == null)
             {
                 _paramContainer = new ParamContainer();
             }
         }
     }
     return(_paramContainer);
 }