예제 #1
0
        static void Main(string[] args)
        {
            Application.SetCompatibleTextRenderingDefault(false);

            // Load embedded resources
            setupAssemblyResolve();

            Connecting con = new Connecting();
            Ui ui = new Ui(con);

            Client client = new Client(ui);
            ui.setClient(ref client);

            // Initialize the client then run the application
            client.initialize(() => {
                DownloadHandler dlHandler = client.getDownloadHandler();
                if (dlHandler != null) {
                    dlHandler.setProgressBar(ui.getDownloadProgressBar());
                }

                client.update();

                // Display main window
                ui.Show();
            });

            Application.Run(con);
        }
예제 #2
0
파일: UI.cs 프로젝트: BenDol/RocketLauncher
        public Ui(Connecting connecting)
        {
            this.connecting = connecting;

            InitializeComponent();
        }
예제 #3
0
        public Ui(Connecting connecting)
        {
            this.connecting = connecting;

            InitializeComponent();
        }