Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
        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;
        }