コード例 #1
0
        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);
        }
コード例 #2
0
 public AppWindow(AppController appController)
 {
     this.appController = appController;
     InitializeComponent();
 }
コード例 #3
0
 public void set(AppController appController, LoginWindow loginWindow, AppWindow appWindow)
 {
     this.appController = appController;
     this.loginWindow   = loginWindow;
     this.appWindow     = appWindow;
 }