//加载时的初始化
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            pages    = new Page[6];
            pages[0] = new FirstPage();                    //首页
            pages[1] = new SoftWareAppPage();              //应用程序
            pages[2] = new OnLineUsersPage();              //在线用户控制管理
            pages[3] = new SystemInfoPage();               //系统信息
            pages[4] = new ProcessesViewPage();            //系统进程

            mainThread = new Thread(new ThreadStart(mainThreadStart));
            mainThread.IsBackground = true;
            mainThread.Start();
            FirstPageRadioButton.IsChecked = true;
            HotKeyFactory.ReadKeyHistory();                    //历史热键读取
        }
 //关闭后发生
 protected override void OnClosed(EventArgs e)
 {
     mainThread.Abort();
     SoftWareAppPage.SaveProcessesLog();
     base.OnClosed(e);
 }