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); } }
public static ParamContainer GetInstance() { if (_paramContainer == null) { lock (locker) { if (_paramContainer == null) { _paramContainer = new ParamContainer(); } } } return(_paramContainer); }