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(); }
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; }
static Application() { MyApplication = new WindowsFormsApplicationBase(); }
public Applications() { MyApplication = new WindowsFormsApplicationBase(); }