Exemple #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();
        }
Exemple #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);
        }
Exemple #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();
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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;
        }