예제 #1
0
        private void goToNumberButton_Click(object sender, RoutedEventArgs e)
        {
            if (null == goToNumberFileComboBox.SelectedItem)
            {
                return;
            }

            gotoProgressButton.IsEnabled = false;

            gotoProgressButton.ProgressBarVisibility = Visibility.Visible;
            gotoProgressButton.CurrentValue          = 0;
            gotoProgressButton.MinValue  = 0;
            gotoProgressButton.MaxValue  = Math.Max(goToNumberTextBox.NumericalValue, 1);
            gotoProgressButton.StepValue = 1;

            LogViewModel.BeginNewReadAtByteOccurrenceNumber(Math.Max(0, goToNumberTextBox.NumericalValue - 1),
                                                            goToNumberFileComboBox.SelectedItem as string,
                                                            gotoProgressButton.PerformStep);
        }