public UserLoginPanel(int type) { InitializeComponent(); this.SetSepartor(false); loginSuccessType = type; if (type == 0) { this.userLoginWithMoviePanel1.Visible = false; this.StopOpertionTime(); this.SetOperationTime(100); } else { this.userLoginWithMoviePanel1.Visible = true; this.StopOpertionTime(); this.SetOperationTime(100); } this.KeyDown += new KeyEventHandler(UserLoginPanel_KeyDown); HiPiaoTerminal.ConfigModel.SystemConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig <SystemConfig>(); if (config.UseRfid) { this.panelUseRfid.Location = new Point(this.panelUseKey.Location.X, this.panelUseKey.Location.Y); this.panelUseRfid.Visible = true; } else { this.panelUseRfid.Visible = false; } this.panelUseKey.Visible = false; }
public void LoadHtml() { //GlobalTools.RegistUpdateUnOperationTime(UpdateUnOperationTime); this.webBrowser1.ScriptErrorsSuppressed = true; //this.webBrowser1. //this.webBrowser1.sc ConfigModel.SystemConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig <SystemConfig>(); this.webBrowser1.Navigate(config.TastUrl); }
private void UserLoginPanel_Load(object sender, EventArgs e) { // GlobalTools.RegistUpdateUnOperationTime(null); //this.FindForm().AcceptButton = this.btnLogin; this.txtUserName.Focus(); ConfigModel.SystemConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig <ConfigModel.SystemConfig>(); if (config.UseRfid) { this.timerReadCard.Start(); } }
private void txtPwd_Enter(object sender, EventArgs e) { HiPiaoTerminal.ConfigModel.SystemConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig <SystemConfig>(); if (config.UseHardwareKeyboard) { this.panelUseKey.Visible = true; } else { this.panelUseKey.Visible = false; } this.panelUseRfid.Visible = false; }
public static DialogResult Pop(Control panel, int type) { GlobalTools.StopFullTimer(); ConfigModel.SystemConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig <ConfigModel.SystemConfig>(); if (config.UseVirtualKeyboard) { #if DEBUG Console.WriteLine("Pop方法开始隐藏小键盘"); #endif GlobalTools.HideAllKeyBoard(); } if (config.UseMaskPanel) { return(PopMask(panel, type)); } else { return(PopUnMask(panel, type)); } }