Exemplo n.º 1
0
        public void Run_NoStartupFormException()
        {
            var application = new WindowsFormsApplicationBase();

            // Exception.ToString() called to verify message is constructed successfully.
            _ = Assert.Throws <NoStartupFormException>(() => application.Run(Array.Empty <string>())).ToString();
        }
Exemplo n.º 2
0
 internal RemoteCommunicator(WindowsFormsApplicationBase appObject, EventWaitHandle ConnectionMadeSemaphore)
 {
     new SecurityPermission(SecurityPermissionFlag.ControlPrincipal).Assert();
     m_OriginalUser = WindowsIdentity.GetCurrent();
     CodeAccessPermission.RevertAssert();
     m_AsyncOp = AsyncOperationManager.CreateOperation(null);
     m_StartNextInstanceDelegate = appObject.RunNextInstanceDelegate;
     m_ConnectionMadeSemaphore   = ConnectionMadeSemaphore;
 }
Exemplo n.º 3
0
 static Application()
 {
     MyApplication = new WindowsFormsApplicationBase();
 }
Exemplo n.º 4
0
 public Applications()
 {
     MyApplication = new WindowsFormsApplicationBase();
 }