Ejemplo n.º 1
0
 //设置为不获取焦点的浮动窗口
 public numberboard(FangpuTerminal Terminal)
 {
     InitializeComponent();
     FangpuTerminal        = Terminal;
     SetControlStyleMethod = typeof(Button).GetMethod("SetStyle",
                                                      BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.InvokeMethod);
     SetChildControlNoFocus(this);
     this.DoubleBuffered = true;
     SetStyle(ControlStyles.Selectable, false);
     this.TopMost         = true;
     this.FormBorderStyle = FormBorderStyle.None;
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     SetBtnStyle(button_backspace);
     SetBtnStyle(button_cancel);
     SetBtnStyle(button0);
     SetBtnStyle(button1);
     SetBtnStyle(button2);
     SetBtnStyle(button3);
     SetBtnStyle(button4);
     SetBtnStyle(button5);
     SetBtnStyle(button6);
     SetBtnStyle(button7);
     SetBtnStyle(button8);
     SetBtnStyle(button9);
     SetBtnStyle(button_del);
     SetBtnStyle(button_enter);
     SetBtnStyle(button_CE);
 }
Ejemplo n.º 2
0
 public Dailycheck(FangpuTerminal Terminal)
 {
     InitializeComponent();
     dateTimePicker1.Value = DateTime.Now;
     FangpuTerminal        = Terminal;
     textBox2.Text         = Properties.TerminalParameters.Default.terminal_name;
 }
 /// <summary>
 /// Shutdown the terminal
 /// </summary>
 /// <param name="terminal"></param>
 public static void SystemShutdown(FangpuTerminal terminal)
 {
     terminal.AbortAllThread();
     var startinfo = new ProcessStartInfo("shutdown.exe",
         "-s -t 00");
     TerminalLogWriter.WriteInfoLog(typeof(TerminalCommon), "Terminal is about to shutdown...");
     Process.Start(startinfo);
 }
 /// <summary>
 /// Restart the app
 /// </summary>
 /// <param name="terminal"></param>
 public static void AppRestart(FangpuTerminal terminal)
 {
     terminal.AbortAllThread();
     terminal.restartbutton = true;
     TerminalLogWriter.WriteInfoLog(typeof(TerminalCommon), "Application is about to restart...");
     Application.ExitThread();
     Application.Restart();
 }
Ejemplo n.º 5
0
        public stoptable(FangpuTerminal Terminal)
        {
            InitializeComponent();

            FangpuTerminal = Terminal;
            haltreason     = "";
            Init();
        }
Ejemplo n.º 6
0
 public Bandcheck(FangpuTerminal Terminal)
 {
     InitializeComponent();
     dateTimePicker1.Value = DateTime.Now;
     luwei.Text            = Properties.TerminalParameters.Default.terminal_name;
     FangpuTerminal        = Terminal;
     if (FangpuTerminal.typeselect.SelectedItem != null)
     {
         chanpinguige.Text = FangpuTerminal.typeselect.SelectedItem.ToString();
     }
 }
Ejemplo n.º 7
0
 public Fieldcheck(FangpuTerminal Terminal)
 {
     InitializeComponent();
     FangpuTerminal = Terminal;
     if (FangpuTerminal.typeselect.SelectedItem != null)
     {
         guige.Text = FangpuTerminal.typeselect.SelectedItem.ToString();
     }
     dateTimePicker1.Value = DateTime.Now;
     shijian.Text          = DateTime.Now.ToString();
 }
Ejemplo n.º 8
0
 public OutputForm(FangpuTerminal Terminal)
 {
     InitializeComponent();
     DateTime now = DateTime.Now;
     dataout_dateTimePickerstart.Value = now;
     dataout_dateTimePickerstart.Value = now.AddHours(1);
     comboBox_type.SelectedIndex=0;
     FangpuTerminal = Terminal;
     if(FangpuTerminal.isInsert==true)
     {
         label_info.Text = "U盘已插入,盘符为:" + FangpuTerminal.UsbName;
     }
 }
Ejemplo n.º 9
0
 public Passwordinput(FangpuTerminal mainterminal)
 {
     InitializeComponent();
     fangputerminal = mainterminal;
 }
Ejemplo n.º 10
0
 public StoptableSqlUpload(FangpuTerminal Terminal)
 {
     FangpuTerminal = Terminal;
 }