コード例 #1
0
        private void StartWriting(object sender, EventArgs e)
        {
            resultView.Text = "";
            stopwatch = new Stopwatch();
            stopwatch.Start();

            fileAccessService.WriteToFile(fileName, contentToWrite);

            stopwatch.Stop();
            timeLabel.Text = stopwatch.GetDurationInMilliseconds();
        }
コード例 #2
0
        partial void StartWriting(UIButton sender)
        {
            resultView.Text = "";
            stopwatch = new Stopwatch();
            stopwatch.Start();

            fileAccessService.WriteToFile(fileName, contentToWrite);

            stopwatch.Stop();

            timeLabel.Text = stopwatch.GetDurationInMilliseconds();
        }
コード例 #3
0
        private void StartReading(object sender, EventArgs e)
        {
            resultView.Text = "";
            stopwatch = new Stopwatch();
            stopwatch.Start();

            var fileContents = fileAccessService.ReadFromFile(fileName);

            stopwatch.Stop();

            resultView.Text = fileContents;
            timeLabel.Text = stopwatch.GetDurationInMilliseconds();
        }
コード例 #4
0
        partial void StartReading(UIButton sender)
        {
            resultView.Text = "";
            stopwatch = new Stopwatch();
            stopwatch.Start();

            var fileContents = fileAccessService.ReadFromFile(fileName);

            stopwatch.Stop();

            resultView.Text = fileContents;
            timeLabel.Text = stopwatch.GetDurationInMilliseconds();
        }