예제 #1
0
        private void StopLogging()
        {
            // txtStatus.Text = "  Logging is disabled";
            picStatus.Image          = global::Timetube.Properties.Resources.traffic_red;
            cmdStartLogging.Enabled  = true;
            cmdStopLogging.Enabled   = false;
            cmdRecord.Enabled        = true;
            cmdStop.Enabled          = false;
            this.cmdRecord.ForeColor = System.Drawing.Color.Red;
            this.cmdStop.ForeColor   = System.Drawing.Color.Silver;


            EnableControls(true);
            timeTube.EndCapture();
        }
예제 #2
0
        public static int Main2(string[] args)
        {
            Timetube tt = Timetube.getInstance();

            tt.SaveDirectory = "c:\\temp\\newDir";
            tt.Interval      = 10;
            Console.WriteLine("*** Started " + TimeFormat.GetDate() + " " + TimeFormat.GetTime());

            // initialise icon cache
            tt.loadIconMap();
            tt.BeginCapture();

            // spin wheels
            Console.WriteLine("press <enter> to stop...");
            Console.ReadLine();

            // shut down timer & event watchers
            tt.EndCapture();
            return(0);
        }