Exemplo n.º 1
0
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            //Windows 8 API to enable touch keyboard to monitor for focus tracking in this WPF application
            InputPanelConfiguration  cp  = new InputPanelConfiguration();
            IInputPanelConfiguration icp = cp as IInputPanelConfiguration;

            if (icp != null)
            {
                icp.EnableFocusTracking();
            }
        }
Exemplo n.º 2
0
        //[email protected]
        //bigmsc
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            InputPanelConfiguration  cp  = new InputPanelConfiguration();
            IInputPanelConfiguration icp = cp as IInputPanelConfiguration;

            if (icp != null)
            {
                icp.EnableFocusTracking();
            }
            ConfigurationManager.AppSettings["Culture"] = Flip.Local ? "en-US" : "ru-RU";
            Properties.Resources.Culture = new System.Globalization.CultureInfo(ConfigurationManager.AppSettings["Culture"]);
        }
Exemplo n.º 3
0
        private void MainWindowLoaded(object sender, RoutedEventArgs e)
        {
            lnm.Content = Config.Name;
            lnt.Content = Config.NameTicket;
            lnu.Content = Config.User;

            if (Config.IsUseServer)
            {
                _dispatcherTimer          = new DispatcherTimer();
                _dispatcherTimer.Tick    += DispatcherTimerTick;
                _dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 1, 0);
                _dispatcherTimer.Start();
            }

            ClassBallanceMAGELLAN_8400.Opn();
            //Windows 8 API to enable touch keyboard to monitor for focus tracking in this WPF application
            try
            {
                var cp  = new InputPanelConfiguration();
                var icp = cp as IInputPanelConfiguration;
                if (icp != null)
                {
                    icp.EnableFocusTracking();
                }
            }
            catch
            {
                // ignored
            }

            foreach (var bs in ClassEtcFun.FindVisualChildren <Button>(this))
            {
                bs.Click += ButtonClick;
            }

            xProduct.Focus();
            ClassCustomerDisplay.Hi();

            status_message.Text += Environment.NewLine + "--------------------------------" + Environment.NewLine +
                                   "Caisse : " + Config.NameTicket + Environment.NewLine +
                                   "Post : " + Config.NumberTicket + Environment.NewLine +
                                   "Nom d'usager : " + Config.User + Environment.NewLine + Environment.NewLine +
                                   "--------------------------------" + Environment.NewLine +
                                   "La clé d'ouverture générale : " + GlobalVar.TicketWindowG + Environment.NewLine +
                                   "La clé d'ouverture local : " + GlobalVar.TicketWindow + Environment.NewLine;

            foreach (var gs in ClassEtcFun.FindVisualChildren <GridSplitter>(this))
            {
                gs.IsEnabled = Config.GridModif;
            }
        }
Exemplo n.º 4
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     if (this.IsWindows8)
     {
         InputPanelConfiguration  cp  = new InputPanelConfiguration();
         IInputPanelConfiguration icp = cp as IInputPanelConfiguration;
         if (icp != null)
         {
             icp.EnableFocusTracking();
         }
     }
     //if (this.IsWindows8 == false)
     //{
     //    KeyboardManager.StartOsk();
     //    ////KeyboardManager.LaunchOnScreenKeyboard();
     //}
 }
Exemplo n.º 5
0
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            lnm.Content              = ClassGlobalVar.Name;
            lnt.Content              = ClassGlobalVar.nameTicket;
            lnu.Content              = ClassGlobalVar.user;
            dispatcherTimer          = new System.Windows.Threading.DispatcherTimer();
            dispatcherTimer.Tick    += new EventHandler(dispatcherTimer_Tick);
            dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 1, 0);
            // dispatcherTimer.Start();
            ClassBallance.opn();
            //Windows 8 API to enable touch keyboard to monitor for focus tracking in this WPF application
            try
            {
                InputPanelConfiguration  cp  = new InputPanelConfiguration();
                IInputPanelConfiguration icp = cp as IInputPanelConfiguration;
                if (icp != null)
                {
                    icp.EnableFocusTracking();
                }
            }
            catch
            { }

            foreach (Button bs in ClassETC_fun.FindVisualChildren <Button>(this))
            {
                bs.Click += Button_Click;
            }
            xProduct.Focus();

            ClassCustomerDisplay.hi();

            status_message.Text += Environment.NewLine + "--------------------------------" + Environment.NewLine +
                                   "Caisse : " + ClassGlobalVar.nameTicket + Environment.NewLine +
                                   "Post : " + ClassGlobalVar.numberTicket + Environment.NewLine +
                                   "Nom d'usager : " + ClassGlobalVar.user + Environment.NewLine + Environment.NewLine +
                                   "--------------------------------" + Environment.NewLine +
                                   "La clé d'ouverture générale : " + ClassGlobalVar.TicketWindowG + Environment.NewLine +
                                   "La clé d'ouverture local : " + ClassGlobalVar.TicketWindow + Environment.NewLine;

            foreach (GridSplitter gs in ClassETC_fun.FindVisualChildren <GridSplitter>(this))
            {
                gs.IsEnabled = ClassGlobalVar.gridModif;
            }
        }
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
 
            //Windows 8 API to enable touch keyboard to monitor for focus tracking in this WPF application
            InputPanelConfiguration cp = new InputPanelConfiguration();
            IInputPanelConfiguration icp = cp as IInputPanelConfiguration;
            if (icp != null)
                icp.EnableFocusTracking();
    
        }