예제 #1
0
 public ConfirmInputPlanCodeView(string weight, string unit, string filepath, bool isStandardBoard, string carNO)
 {
     InitializeComponent();
     this.weightLabel.Content = weight;
     this.unitLabel.Content   = unit;
     this.carLabel.Content    = carNO;
     businessNoTextBlock.Focus();
     this.Loaded += Window_Loaded;
     //if (isStandardBoard)
     //{
     //    this.businessNoTextBlock.Focus();
     //    this.KeyDown += Window_KeyDown;
     //}
     //else
     //{
     //    ikb = new KeyBoardController(filepath);
     //    ikb.OnReceivedKeyData += ikb_OnReceivedKeyData;
     //    ikb.Open();
     //    ikb.Start();
     //}
     this.businessNoTextBlock.Focus();
     this.businessNoTextBlock.KeyDown += Window_KeyDown;
     this.businessNoTextBlock.KeyUp   += businessNoTextBlock_KeyUp;
     this.Closed           += ConfirmInputPlanCodeView_Closed;
     ikb                    = new KeyBoardController(filepath);
     ikb.OnReceivedKeyData += ikb_OnReceivedKeyData;
     ikb.Open();
     ikb.Start();
 }
예제 #2
0
 public ConfirmMessageBox(string weight, string unit, string filepath)
 {
     InitializeComponent();
     this.KeyDown          += Window_KeyDown;
     ikb                    = new KeyBoardController(filepath);
     ikb.OnReceivedKeyData += ikb_OnReceivedKeyData;
     ikb.Open();
     ikb.Start();
     this.weightLabel.Content = weight;
     this.unitLabel.Content   = unit;
 }
예제 #3
0
        public ConfirmMessageBox()
        {
            InitializeComponent();
            string logConfigPath = AppDomain.CurrentDomain.BaseDirectory + "ClientConfig\\SystemConfig.xml";

            this.KeyDown          += Window_KeyDown;
            ikb                    = new KeyBoardController(logConfigPath);
            ikb.OnReceivedKeyData += ikb_OnReceivedKeyData;
            ikb.Open();
            ikb.Start();
            this.weightLabel.Content = 0;
            this.unitLabel.Content   = 0;
        }