private void StartWriting(object sender, EventArgs e) { resultView.Text = ""; stopwatch = new Stopwatch(); stopwatch.Start(); fileAccessService.WriteToFile(fileName, contentToWrite); stopwatch.Stop(); timeLabel.Text = stopwatch.GetDurationInMilliseconds(); }
partial void StartWriting(UIButton sender) { resultView.Text = ""; stopwatch = new Stopwatch(); stopwatch.Start(); fileAccessService.WriteToFile(fileName, contentToWrite); stopwatch.Stop(); timeLabel.Text = stopwatch.GetDurationInMilliseconds(); }
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(); }
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(); }