static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); IService server = new ServerProxy("127.0.0.1", 55555); AppController appController = new AppController(server); LoginController loginController = new LoginController(server); LoginWindow login = new LoginWindow(loginController); AppWindow mainWindow = new AppWindow(appController); appController.set(loginController, login, mainWindow); loginController.set(appController, login, mainWindow); Application.Run(login); }
public AppWindow(AppController appController) { this.appController = appController; InitializeComponent(); }
public void set(AppController appController, LoginWindow loginWindow, AppWindow appWindow) { this.appController = appController; this.loginWindow = loginWindow; this.appWindow = appWindow; }