Example #1
0
        public void Init(AppDataModel dm, Race race)
        {
            _dm   = dm;
            _race = race;

            _race.RunsChanged += OnRaceRunsChanged;

            UiUtilities.FillCmbRaceRun(cmbRaceRun, _race);
            UiUtilities.FillGrouping(cmbResultGrouping, _currentRaceRun.GetResultViewProvider().ActiveGrouping);

            cmbFilter.Items.Clear();
            cmbFilter.Items.Add(new CBItem {
                Text = "alle Teilnehmer", Value = "all"
            });
            cmbFilter.Items.Add(new CBItem {
                Text = "Teilnehmer ohne Zeit", Value = "no_time"
            });
            cmbFilter.Items.Add(new CBItem {
                Text = "ausgeschiedene Teilnehmer", Value = "out"
            });
            cmbFilter.Items.Add(new CBItem {
                Text = "offene Teilnehmer (keine Zeit oder Ausscheidung)", Value = "no_data"
            });
            cmbFilter.SelectedIndex = 1;

            cmbDisqualify.ItemsSource = ListOfResultCodesToSet;

            cmbDisqualifyReason.Items.Add("Vorbei am Tor");
            cmbDisqualifyReason.Items.Add("Eingefädelt am Tor");
            cmbDisqualifyReason.Items.Add("Nicht weit genug zurückgestiegen am Tor");
            cmbDisqualifyReason.Items.Add("Hilfe durch fremde Person am Tor");

            this.KeyDown += new KeyEventHandler(Timing_KeyDown);
        }
Example #2
0
        public void Init(AppDataModel dm, Race race, IImportTime importTimeDevice)
        {
            _importTimeVM = new ImportTimeEntryVM(race, importTimeDevice);

            dgImportTime.ItemsSource = _importTimeVM.ImportEntries;

            cmbRun.SelectedValuePath = "Value";
            UiUtilities.FillCmbRaceRun(cmbRun, race);
        }
Example #3
0
 private void DisqualifyUC_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     if (!(bool)e.OldValue && (bool)e.NewValue)
     {
         UiUtilities.FillCmbRaceRun(cmbRaceRun, _race);
         setRaceRun(_dm.GetCurrentRaceRun());
         _viewDisqualifications.View.Refresh();
     }
 }
        public void Init(AppDataModel dm, Race race)
        {
            _dm = dm;

            _handTimingVMManager = new HandTimingVMManager(_dm);
            _handTimingVMManager.LoadHandTimingFromFile();

            _race = race;

            cmbCalcRun.SelectedValuePath = "Value";
            UiUtilities.FillCmbRaceRun(cmbCalcRun, race);

            updateHandTimingVM();
        }
Example #5
0
        private void InitializeTiming()
        {
            UiUtilities.FillCmbRaceRun(cmbRaceRun, _thisRace);

            cmbManualMode.Items.Add(new CBItem {
                Text = "Laufzeit", Value = "Absolut"
            });
            cmbManualMode.Items.Add(new CBItem {
                Text = "Differenz", Value = "Difference"
            });
            cmbManualMode.SelectedIndex = 1;

            gridManualMode.Visibility = Visibility.Collapsed;

            this.KeyDown += new KeyEventHandler(Timing_KeyDown);

            Properties.Settings.Default.PropertyChanged += SettingChangingHandler;

            _thisRace.RunsChanged += OnRaceRunsChanged;

            UpdateLiveTimingStartStopButtons(false); // Initial status
        }
Example #6
0
 private void OnRaceRunsChanged(object sender, EventArgs e)
 {
     UiUtilities.FillCmbRaceRun(cmbRaceRun, _thisRace);
 }