Пример #1
0
        public MainClass()
        {
            window = new MainWindow();
            window.OnClickEvent += OnPinCode_ButtonClickEvent;
            window.Closing += new CancelEventHandler(MainWindow_Closing);
            window.Show();

            Task.Run(() => {
                trialThread = new Thread(TrialTimer);
                trialThread.Start();

                server = new QuitServer();
                serverThread = new Thread(server.Run);
                serverThread.Start();

                twitter = new Twitter();
                twitter.OnRequestEvent += OnRequest_TwitterEvent;
                twitter.OnIndexTextEvent += OnIndexText_TwitterEvent;
                twitter.OnAuthCompleteEvent += OnAuthComplete_TwitterEvent;
                twitter.OnAuthErrorEvent += OnAuthError_TwitterEvent;
                twitter.Init();
            });

            app = new Application();
            app.Run(window);
        }
Пример #2
0
        public MainClass()
        {
            window = new MainWindow();
            window.OnClickEvent += OnPinCode_ButtonClickEvent;
            window.Closing      += new CancelEventHandler(MainWindow_Closing);
            window.Show();

            Task.Run(() => {
                trialThread = new Thread(TrialTimer);
                trialThread.Start();

                server       = new QuitServer();
                serverThread = new Thread(server.Run);
                serverThread.Start();

                twitter = new Twitter();
                twitter.OnRequestEvent      += OnRequest_TwitterEvent;
                twitter.OnIndexTextEvent    += OnIndexText_TwitterEvent;
                twitter.OnAuthCompleteEvent += OnAuthComplete_TwitterEvent;
                twitter.OnAuthErrorEvent    += OnAuthError_TwitterEvent;
                twitter.Init();
            });

            app = new Application();
            app.Run(window);
        }
Пример #3
0
 public Response(QuitServer server, Socket client)
 {
     this.server = server;
     this.client = client;
 }
Пример #4
0
 public Response(QuitServer server, Socket client)
 {
     this.server = server;
     this.client = client;
 }