예제 #1
0
 private void Chat_Loaded(object sender, RoutedEventArgs e)
 {
     CurrentUser         = ChatCoreHelper.GetCurrentUserInfo();
     console.ItemsSource = consoleMsg;
     resizeItems();
     timerSync          = new DispatcherTimer();
     timerSync.Interval = System.TimeSpan.FromMilliseconds(1000);
     timerSync.Tick    += timerSync_Tick;
     timerSync.Start();
     te.wire(this);
     te.init();
     log.wire(this);
     log.init();
     bot = new Bot();
     bot.wire(this);
     stage = StageEnum.LOADED;
     addConsoleMsg("Loaded");
 }
예제 #2
0
        private void Chat_Loaded(object sender, RoutedEventArgs e)
        {
            CurrentUser = ChatCoreHelper.GetCurrentUserInfo();
            //console.ItemsSource = consoleMsg;
            resizeItems();
            timerSync          = new DispatcherTimer();
            timerSync.Interval = System.TimeSpan.FromMilliseconds(1000);
            timerSync.Tick    += timerSync_Tick;
            timerSync.Start();
            te.wire(this);
            te.init();
            log.wire(this);
            log.init();
            bot = new Bot();
            bot.wire(this);
            stage = StageEnum.LOADED;
            addConsoleMsg("Loaded");
            List <int> ss = new List <int>()
            {
                0, 1, 2, 3, 4, 5, 6, 7, 8
            };

            for (int k = ss.Count - 1; k >= 0; k--)
            {
                //var p = Persons[i];
                //if (p == null)
                //{
                //    continue;
                //}
                int j = ss.IndexOf(k);
                Console.WriteLine(k + "  " + j + "    " + (ss.Count - 1));
            }
            //for (int i = 0; i < 100; i++)
            //{
            //    Thread.Sleep(1000);
            //    Console.WriteLine(i);
            //}

            // writeMessage("sdfsdf", 0, null);
        }