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