private async void btn_saveJan_Click(object sender, RoutedEventArgs e)
        {
            DataBaseUtil.getSingleton().updateJanCode(janBindButton.getDbCol(), this.tbx_restJan.Text);
            MessageDialog dialog = new MessageDialog("保存しました!");

            dialog.ShowAsync();
        }
 private void btn_staff_PointerPressed(object sender, PointerRoutedEventArgs e)
 {
     if (e.Pointer.PointerDeviceType == Windows.Devices.Input.PointerDeviceType.Mouse)
     {
         var properties = e.GetCurrentPoint(this).Properties;
         if (properties.IsRightButtonPressed)
         {
             showJanCodeMessage(DataBaseUtil.getSingleton().queryJanFromDB(BarcodeDBSchema.BarcodeTable.Cols.STAFF), this.btn_staff, BarcodeDBSchema.BarcodeTable.Cols.STAFF);
         }
     }
 }
 private void btn_testNine_PointerPressed(object sender, PointerRoutedEventArgs e)
 {
     if (e.Pointer.PointerDeviceType == Windows.Devices.Input.PointerDeviceType.Mouse)
     {
         var properties = e.GetCurrentPoint(this).Properties;
         if (properties.IsRightButtonPressed)
         {
             showPrePaidCardMessage(DataBaseUtil.getSingleton().queryJanFromDB(BarcodeDBSchema.BarcodeTable.Cols.TESTNINE), "9999");
         }
     }
 }
Exemple #4
0
        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            this.InitializeComponent();
            this.Suspending += OnSuspending;
            DataBaseUtil dataBase = DataBaseUtil.getSingleton();

            dataBase.createTable();
            if (!dataBase.isTableDataExists())
            {
                dataBase.initTable();
            }
        }
 private void btn_head0_Click(object sender, RoutedEventArgs e)
 {
     backToMainPageByProduct(DataBaseUtil.getSingleton().queryJanFromDB(BarcodeDBSchema.BarcodeTable.Cols.HEAD0));
 }
 private void btn_twentyForbidden_Click(object sender, RoutedEventArgs e)
 {
     backToMainPageByProduct(DataBaseUtil.getSingleton().queryJanFromDB(BarcodeDBSchema.BarcodeTable.Cols.TWENTYFORBIDDEN));
 }
 private void btn_testNine_Click(object sender, RoutedEventArgs e)
 {
     backToMainPage(DataBaseUtil.getSingleton().queryJanFromDB(BarcodeDBSchema.BarcodeTable.Cols.TESTNINE));
 }
 private void btn_timesCoupon_Click(object sender, RoutedEventArgs e)
 {
     backToMainPageByProduct(DataBaseUtil.getSingleton().queryJanFromDB(BarcodeDBSchema.BarcodeTable.Cols.TIMESCOUPON));
 }
 private void btn_brandSwich_Click(object sender, RoutedEventArgs e)
 {
     backToMainPageByProduct(DataBaseUtil.getSingleton().queryJanFromDB(BarcodeDBSchema.BarcodeTable.Cols.BRANDSWITCH));
 }