protected virtual void OnItemChosen(ItemChosenEventArgs e) { if (ItemChosen != null) { ItemChosen(this, e); } }
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); } }
private void OnItemChosen(object sender, ItemChosenEventArgs <AcObjectNew> e) { if (e.ChosenItem is TrackObjectBase c) { Model.SelectedTrackConfiguration = c.MainTrackObject.SelectedLayout; CloseWithResult(MessageBoxResult.OK); } }
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)); } }
private void Choosing_ItemChosen(object sender, ItemChosenEventArgs <AcObjectNew> e) { var c = e.ChosenItem as CarObject; if (c != null) { SelectedCar = c; CloseWithResult(MessageBoxResult.OK); } }
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); } }
private void SelectCar_OnItemChosen(object sender, ItemChosenEventArgs <CarObject> e) { Model?.AddEntry(e.ChosenItem); }
private void Choosing_ItemChosen(object sender, ItemChosenEventArgs<AcObjectNew> e) { var c = e.ChosenItem as CarObject; if (c != null) { SelectedCar = c; CloseWithResult(MessageBoxResult.OK); } }
private void SelectCar_OnItemChosen(object sender, ItemChosenEventArgs<CarObject> e) { Model?.AddEntry(e.ChosenItem); }
private void SelectCar_OnItemChosen(object sender, ItemChosenEventArgs <CarObject> e) { Model.SelectedObject.DriverEntries.Add(new ServerPresetDriverEntry(e.ChosenItem)); //Model?.AddEntry(e.ChosenItem); }