public ManualThrowPanel(Logger logger, DetectionService detectionService) { this.logger = logger; this.detectionService = detectionService; MakeManualThrowCommand = new MakeManualThrowCommand(ThrowDartTo); manualThrowPanelWindow = new ManualThrowPanelWindow { DartboardImage = { Source = Converter.BitmapToBitmapImage(Resources.Resources.Dartboard) }, DataContext = this }; }
public ManualThrowPanel(Logger logger, DetectionService detectionService) { this.logger = logger; this.detectionService = detectionService; if (App.ThrowPanel) { manualThrowPanelWindow = new ManualThrowPanelWindow(this); manualThrowPanelWindow.DartboardImage.Source = Converter.BitmapToBitmapImage(Resources.Resources.Dartboard); manualThrowPanelWindow.Show(); } }