예제 #1
0
파일: frmMsg.cs 프로젝트: d2phap/ImageGlass
        public frmMsg(string title, string msg, FormMessageIcons icon, string btnClose_Text)
        {
            InitializeComponent();

            Text = _title = title;
            lblMessage.Text = _msg = msg;
            _icon = icon;
            btnClose.Text = _btnClose_Text = btnClose_Text;

            if (_icon == FormMessageIcons.Loading)
            {
                picStatus.Image = igcmd.Properties.Resources.loading;
            }
            else if (_icon == FormMessageIcons.Warning)
            {
                picStatus.Image = igcmd.Properties.Resources.warning;
            }
            else
            {
                picStatus.Image = igcmd.Properties.Resources.ok;
            }
        }
예제 #2
0
        public frmMsg(string title, string msg, FormMessageIcons icon, string btnClose_Text)
        {
            InitializeComponent();

            Text            = _title = title;
            lblMessage.Text = _msg = msg;
            _icon           = icon;
            btnClose.Text   = _btnClose_Text = btnClose_Text;

            if (_icon == FormMessageIcons.Loading)
            {
                picStatus.Image = igcmd.Properties.Resources.loading;
            }
            else if (_icon == FormMessageIcons.Warning)
            {
                picStatus.Image = igcmd.Properties.Resources.warning;
            }
            else
            {
                picStatus.Image = igcmd.Properties.Resources.ok;
            }
        }