Пример #1
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void Initial()
        {
            imageKey = new Hashtable();
            System.Collections.Specialized.StringCollection keyCol = iml_ExplorerImages.Images.Keys;
            for (int i = 0; i < keyCol.Count; i++)
            {
                if (!imageKey.Contains(keyCol[i]))
                {
                    imageKey.Add(keyCol[i], keyCol[i]);
                }
            }
            //总控制端初始化
            GeneralControler                        = new Clients.Controlers(imageKey);
            GeneralControler.pic_Screen             = pic_Screen;
            GeneralControler.ltv_HostExplorer       = ltv_hostexplorer;
            GeneralControler.ltv_Log                = ltv_Log;
            GeneralControler.ltv_MyExplorer         = ltv_myexplorer;
            GeneralControler.rtb_Content            = rtb_Content;
            GeneralControler.DosResult_rTB          = DosResult_rtb;
            GeneralControler.ComputerInfoResult_rTB = computerInfo_rtb;
            GeneralControler.Process_lV             = process_lv;
            GeneralControler.Service_lV             = Service_lv;
            GeneralControler.Startup_lV             = Startup_lv;
            GeneralControler.PSS_rTB                = PSS_rtb;
            GeneralControler.lv_Regeidt             = Reg_lV;
            GeneralControler.tv_Regedit             = Reg_tV;
            GeneralControler.rtb_Regedit            = Reg_rTB;
            GeneralControler.rtb_Script             = Script_rtb;
            GeneralControler.trv_HostView           = trv_HostView;
            GeneralControler.txb_HostExploer        = txt_hostexplorer;
            GeneralControler.txb_MyExplorer         = txt_myexplorer;
            GeneralControler.lbl_Message            = lbl_Display;
            ICanSeeYou.Configure.Option     option     = new ICanSeeYou.Configure.Option();
            ICanSeeYou.Configure.OptionFile optionFile = option.OptFile;
            if (optionFile != null)
            {
                GeneralControler.UpdatedFile   = optionFile.UpdatedFile;
                GeneralControler.ServerVersion = optionFile.UpdatedVersion;
            }

            //未开始截屏
            ScreenOpen = false;
            //默认截屏间隔时间(一秒),即截屏速度为中.
            ScreenTimer.Interval        = 1000;
            中MToolStripMenuItem.Checked = true;
            //  this.ShowInTaskbar = false;
        }
Пример #2
0
        /// <summary>
        /// ��ʼ��
        /// </summary>
        private void Initial()
        {
            imageKey = new Hashtable();
            System.Collections.Specialized.StringCollection keyCol = iml_ExplorerImages.Images.Keys;
            for (int i = 0; i < keyCol.Count; i++)
                if (!imageKey.Contains(keyCol[i]))
                    imageKey.Add(keyCol[i], keyCol[i]);
            //�ܿ��ƶ˳�ʼ��
            GeneralControler = new Clients.Controlers(imageKey);
            GeneralControler.pic_Screen = pic_Screen;
            GeneralControler.ltv_HostExplorer = ltv_hostexplorer;
            GeneralControler.ltv_Log = ltv_Log;
            GeneralControler.ltv_MyExplorer = ltv_myexplorer;
            GeneralControler.rtb_Content = rtb_Content;
            GeneralControler.trv_HostView = trv_HostView;
            GeneralControler.txb_HostExploer = txt_hostexplorer;
            GeneralControler.txb_MyExplorer = txt_myexplorer;
            GeneralControler.lbl_Message = lbl_Display;

            ICanSeeYou.Configure.Option option = new ICanSeeYou.Configure.Option();
            ICanSeeYou.Configure.OptionFile optionFile = option.OptFile;
            if (optionFile != null)
            {
                GeneralControler.UpdatedFile = optionFile.UpdatedFile;
                GeneralControler.ServerVersion = optionFile.UpdatedVersion;
            }

            //δ��ʼ����
            ScreenOpen = false;
            //Ĭ�Ͻ������ʱ��(һ��),�������ٶ�Ϊ��.
            ScreenTimer.Interval = 1000;
            ��MToolStripMenuItem.Checked = true;
              //  this.ShowInTaskbar = false;
        }