Exemple #1
0
 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
     };
 }
Exemple #2
0
        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();
            }
        }