public void GetVehicles() { var window = new VehicleWindow(); window.DataContext = new VehicleViewModel(); window.Show(); }
private static bool PrefixInitialize(VehicleWindowHeaderView __instance, VehicleWindow window) { var titleContainer = __instance.transform.Find("Title"); StorageViewHelper.InstantinateStoragesViewForVehicleWindow(titleContainer.transform, window.Vehicle); return(true); }
private void Vehicles_DataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var tmp = (Vehicle)Vehicles_DataGrid.SelectedItem; var window = new VehicleWindow("Edit", tmp); window.ShowDialog(); SetDataGrid(); }
private void AddVehicle_Click(object sender, RoutedEventArgs e) { var vehicle = new Vehicle(); var add = new VehicleWindow("Add new vehicle", vehicle); add.ShowDialog(); what = "vehicles"; SetDataGrid(); }
private static void SmashRandomWindow(Vehicle veh) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type ZombieVehicleSpawner.\u003C\u003Ec__DisplayClass33_0 cDisplayClass330 = new ZombieVehicleSpawner.\u003C\u003Ec__DisplayClass33_0(); // ISSUE: reference to a compiler-generated field cDisplayClass330.veh = veh; // ISSUE: method pointer VehicleWindow[] array = ((IEnumerable <VehicleWindow>)Enumerable.Where <VehicleWindow>((IEnumerable <M0>)Enum.GetValues(typeof(VehicleWindow)), (Func <M0, bool>) new Func <VehicleWindow, bool>((object)cDisplayClass330, __methodptr(\u003CSmashRandomWindow\u003Eb__0)))).ToArray <VehicleWindow>(); VehicleWindow vehicleWindow = (VehicleWindow)(int)array[Database.Random.Next(array.Length)]; // ISSUE: reference to a compiler-generated field cDisplayClass330.veh.SmashWindow(vehicleWindow); }
private static void SmashRandomWindow(Vehicle veh) { VehicleWindow[] values2 = (VehicleWindow[])Enum.GetValues(typeof(VehicleWindow)); values2 = (from v in values2 where Function.Call <bool>(GTA.Native.Hash.IS_VEHICLE_WINDOW_INTACT, (InputArgument[])new InputArgument[2] { veh.Handle, (int)v }) select v).ToArray(); VehicleWindow rand = values2[Database.Random.Next(values2.Length)]; veh.SmashWindow(rand); }
private static void VehicleWindowScheduleTab_Initialize_prf(VehicleWindowScheduleTab __instance, VehicleWindow window) { VehicleScheduleData scheduleData = VehicleScheduleDataManager.Current.GetOrCreateVehicleScheduleData(window.Vehicle); VehicleScheduleTabExtender tabExt = __instance.gameObject.AddComponent <VehicleScheduleTabExtender>(); tabExt.Initialize(scheduleData); }
internal void SetAttachedWindow(VehicleWindow window) { AttachedWindow = window; }
public VehicleDoorBuilder WithAttachedWindow(VehicleWindow window) { AttachedWindow = window; return(this); }