public void SetfrmWaitDialogType(frmWaitDialogType p_frmWaitDialogType) { if (m_frmWaitDialogType == p_frmWaitDialogType) { return; } m_frmWaitDialogType = p_frmWaitDialogType; m_Image = GetImage(m_frmWaitDialogType); frmWaitDialog_SizeChanged(null, null); this.Refresh(); }
public frmWaitDialog(Action p_Action, frmWaitDialogType p_frmWaitDialogType) { InitializeComponent(); m_Action = p_Action; m_frmWaitDialogType = p_frmWaitDialogType; m_Image = GetImage(m_frmWaitDialogType); this.Opacity = 0.85; this.SizeChanged += new EventHandler(frmWaitDialog_SizeChanged); this.MouseClick += new MouseEventHandler(frmWaitDialog_MouseClick); }
public void SetfrmWaitDialogType(frmWaitDialogType p_frmWaitDialogType) { if (m_frmWaitDialogType == p_frmWaitDialogType) { return; } m_frmWaitDialogType = p_frmWaitDialogType; m_Image = GetImage(m_frmWaitDialogType); frmWaitDialog_SizeChanged(null, null); this.Refresh(); }
public frmWaitDialog(Action p_Action, frmWaitDialogType p_frmWaitDialogType) { InitializeComponent(); m_Action = p_Action; m_frmWaitDialogType = p_frmWaitDialogType; m_Image = GetImage(m_frmWaitDialogType); this.Opacity = 0.85; this.SizeChanged += new EventHandler(frmWaitDialog_SizeChanged); this.MouseClick += new MouseEventHandler(frmWaitDialog_MouseClick); }
private Image GetImage(frmWaitDialogType p_frmWaitDialogType) { switch (p_frmWaitDialogType) { case frmWaitDialogType.WaitInitDevice: return(Client.Properties.Resources.WaitInitDevice); case frmWaitDialogType.WaitReadCard: return(Client.Properties.Resources.WaitReadCard); case frmWaitDialogType.WriteCardFailed: return(Client.Properties.Resources.WriteCardFailed); case frmWaitDialogType.WaitInputPSW: return(Client.Properties.Resources.WaitInputPSW); } return(null); }
private Image GetImage(frmWaitDialogType p_frmWaitDialogType) { switch (p_frmWaitDialogType) { case frmWaitDialogType.WaitInitDevice: return Client.Properties.Resources.WaitInitDevice; case frmWaitDialogType.WaitReadCard: return Client.Properties.Resources.WaitReadCard; case frmWaitDialogType.WriteCardFailed: return Client.Properties.Resources.WriteCardFailed; case frmWaitDialogType.WaitInputPSW: return Client.Properties.Resources.WaitInputPSW; } return null; }