public static void InitAll(Form form) { SystemConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig <SystemConfig>(); GlobalTools.InitInterface(config.HiPiaoInterfaceUrl); RefreshMovieShowList(); AutoCloseComputerTimer = new Timer(); AutoCloseComputerTimer.Interval = 6000; AutoCloseComputerTimer.Tick += new EventHandler(AutoCloseComputerTimer_Tick); AutoCloseComputerTimer.Start(); UpdateTimer = new Timer(); UpdateTimer.Interval = 60000 * config.UpdateMovieTime; UpdateTimer.Tick += new EventHandler(UpdateTimer_Tick); UpdateTimer.Start(); UnOperationTimer = new Timer(); //UnOperationTimer.Interval = config.UnOperationTime*1000; UnOperationTimer.Interval = 1000; UnOperationMaxSecond = config.UnOperationTime; UnOperationTimer.Tick += new EventHandler(UnOperationTimer_Tick); UnOperationTimer.Start(); form.FormClosing += new FormClosingEventHandler(form_FormClosing); MainForm = form; InitKeyboard(); }