예제 #1
0
 protected virtual void OnItemChosen(ItemChosenEventArgs e)
 {
     if (ItemChosen != null)
     {
         ItemChosen(this, e);
     }
 }
예제 #2
0
 private void Choosing_ItemChosen(object sender, ItemChosenEventArgs<AcObjectNew> e) {
     var c = e.ChosenItem as TrackObjectBase;
     if (c != null) {
         Model.SelectedTrackConfiguration = c.MainTrackObject.SelectedLayout;
         CloseWithResult(MessageBoxResult.OK);
     }
 }
예제 #3
0
 private void OnItemChosen(object sender, ItemChosenEventArgs <AcObjectNew> e)
 {
     if (e.ChosenItem is TrackObjectBase c)
     {
         Model.SelectedTrackConfiguration = c.MainTrackObject.SelectedLayout;
         CloseWithResult(MessageBoxResult.OK);
     }
 }
예제 #4
0
        private void Choosing_ItemChosen(object sender, ItemChosenEventArgs <AcObjectNew> e)
        {
            var c = e.ChosenItem as CarObject;

            if (c != null)
            {
                ItemChosen?.Invoke(this, new ItemChosenEventArgs <CarObject>(c));
            }
        }
예제 #5
0
        private void Choosing_ItemChosen(object sender, ItemChosenEventArgs <AcObjectNew> e)
        {
            var c = e.ChosenItem as CarObject;

            if (c != null)
            {
                SelectedCar = c;
                CloseWithResult(MessageBoxResult.OK);
            }
        }
예제 #6
0
        private void Choosing_ItemChosen(object sender, ItemChosenEventArgs <AcObjectNew> e)
        {
            var c = e.ChosenItem as TrackObjectBase;

            if (c != null)
            {
                Model.SelectedTrackConfiguration = c.MainTrackObject.SelectedLayout;
                CloseWithResult(MessageBoxResult.OK);
            }
        }
예제 #7
0
 protected virtual void OnItemChosen(ItemChosenEventArgs e)
 {
     if (ItemChosen != null)
     {
         ItemChosen(this, e);
     }
 }
 private void SelectCar_OnItemChosen(object sender, ItemChosenEventArgs <CarObject> e)
 {
     Model?.AddEntry(e.ChosenItem);
 }
예제 #9
0
 private void Choosing_ItemChosen(object sender, ItemChosenEventArgs<AcObjectNew> e) {
     var c = e.ChosenItem as CarObject;
     if (c != null) {
         SelectedCar = c;
         CloseWithResult(MessageBoxResult.OK);
     }
 }
예제 #10
0
 private void SelectCar_OnItemChosen(object sender, ItemChosenEventArgs<CarObject> e) {
     Model?.AddEntry(e.ChosenItem);
 }
예제 #11
0
 private void SelectCar_OnItemChosen(object sender, ItemChosenEventArgs <CarObject> e)
 {
     Model.SelectedObject.DriverEntries.Add(new ServerPresetDriverEntry(e.ChosenItem));
     //Model?.AddEntry(e.ChosenItem);
 }