예제 #1
0
        public Results(ICollection <double> collection1, ICollection <double> collection2)
        {
            InitializeComponent();
            Grid1.MouseLeftButtonDown += new MouseButtonEventHandler(layoutRoot_MouseLeftButtonDown);
            Speed.Content              = Assay.PrintSpeed;
            Accuracy.Content           = Assay.Accuracy;
            Rating.Content             = Assay.Rating();

            collection_1 = collection1;
            collection_2 = collection2;
        }
예제 #2
0
        /// <summary>
        /// Выполнение вычислений.
        /// </summary>
        public void Tick()
        {
            timenow = DateTime.Now;
            TimeSpan ts      = timenow - timestart;
            double   minutes = (double)(ts.Minutes + ts.Hours * 60 + Convert.ToDouble(ts.Seconds) / 60 + Convert.ToDouble(ts.Milliseconds) / 60000);

            Assay.Characters = Typing.Text.Length;
            Assay.Compute(minutes);

            Assay.WritingValuesForTheChart();

            Speed.Content     = Assay.PrintSpeed; // обновление в окне
            Exactness.Content = Assay.Accuracy;
        }