public Armlet(byte armletId, GlobalModel model, string name, byte getRegen) { Name = name ?? ("Браслет " + armletId); _model = model; Id = armletId; Regen = getRegen; }
private void MainWindow_OnLoaded(object sender, RoutedEventArgs e) { Application.Current.DispatcherUnhandledException += Current_DispatcherUnhandledException; var globalModel = new GlobalModel(NetworkDelivery.ArmletDeliveryInstance, NetworkDelivery.GateDeliveryInstance); ArmletUI.Model = globalModel; ArmletUI.GateUI.Model = globalModel; }
private void MainWindow_OnLoaded(object sender, RoutedEventArgs e) { Title = "HonorGateServer " + Assembly.GetEntryAssembly().GetName().Version; Application.Current.DispatcherUnhandledException += Current_DispatcherUnhandledException; var globalModel = new GlobalModel(NetworkDelivery.ArmletDeliveryInstance, NetworkDelivery.GateDeliveryInstance, NetworkDelivery.ShipDamageServiceInstance); ArmletUI.Model = globalModel; ArmletUI.GateUI.Model = globalModel; }