Ejemplo n.º 1
0
        public Session(Alphora.Dataphor.DAE.Client.DataSession dataSession, bool ownsDataSession) : base(dataSession, ownsDataSession)
        {
            _toolTip = new WinForms.ToolTip();
            try
            {
                _toolTip.Active = true;
            }
            catch
            {
                _toolTip.Dispose();
                _toolTip = null;
                throw;
            }

            // Ensure we are setup for SafelyInvoke.  This must happen on the main windows thread and thus is not in a static constructor.
            lock (_invokeControlLock)
            {
                if (_invokeControl == null)
                {
                    _invokeControl = new WinForms.Control();
                    _invokeControl.CreateControl();
                }
            }

            // Ensure the assembly resolver is loaded
            Alphora.Dataphor.Windows.AssemblyUtility.Initialize();
        }
Ejemplo n.º 2
0
 public Session(Alphora.Dataphor.DAE.Client.DataSession dataSession, bool ownsDataSession)
     : base(dataSession, ownsDataSession)
 {
 }