Exemple #1
0
 private void updateMsg(SGMMessageType type)
 {
     switch (type)
     {
         case SGMMessageType.SGM_MESSAGE_TYPE_ERROR:
             btnCenter.Visible = true;
             btnLeft.Visible = false;
             btnRight.Visible = false;
             picIcon.BackgroundImage = new Bitmap(Properties.Resources.sgm_error);
             break;
         case SGMMessageType.SGM_MESSAGE_TYPE_WARNING:
             btnCenter.Visible = true;
             btnLeft.Visible = false;
             btnRight.Visible = false;
             picIcon.BackgroundImage = new Bitmap(Properties.Resources.sgm_warning);
             break;
         case SGMMessageType.SGM_MESSAGE_TYPE_QUES:
             btnCenter.Visible = false;
             btnLeft.Visible = true;
             btnRight.Visible = true;
             picIcon.BackgroundImage = new Bitmap(Properties.Resources.sgm_question);
             break;
         case SGMMessageType.SGM_MESSAGE_TYPE_INFO:
             btnCenter.Visible = true;
             btnLeft.Visible = false;
             btnRight.Visible = false;
             picIcon.BackgroundImage = new Bitmap(Properties.Resources.sgm_info);
             break;
     }
 }
Exemple #2
0
        private void updateMsg(SGMMessageType type)
        {
            switch (type)
            {
            case SGMMessageType.SGM_MESSAGE_TYPE_ERROR:
                btnCenter.Visible       = true;
                btnLeft.Visible         = false;
                btnRight.Visible        = false;
                picIcon.BackgroundImage = new Bitmap(Properties.Resources.sgm_error);
                break;

            case SGMMessageType.SGM_MESSAGE_TYPE_WARNING:
                btnCenter.Visible       = true;
                btnLeft.Visible         = false;
                btnRight.Visible        = false;
                picIcon.BackgroundImage = new Bitmap(Properties.Resources.sgm_warning);
                break;

            case SGMMessageType.SGM_MESSAGE_TYPE_QUES:
                btnCenter.Visible       = false;
                btnLeft.Visible         = true;
                btnRight.Visible        = true;
                picIcon.BackgroundImage = new Bitmap(Properties.Resources.sgm_question);
                break;

            case SGMMessageType.SGM_MESSAGE_TYPE_INFO:
                btnCenter.Visible       = true;
                btnLeft.Visible         = false;
                btnRight.Visible        = false;
                picIcon.BackgroundImage = new Bitmap(Properties.Resources.sgm_info);
                break;
            }
        }
Exemple #3
0
 public SGMMessageResult ShowMsg(String title, String msg, SGMMessageType type)
 {
     updateMsg(type);
     this.lblMessage.Text = msg;
     this.Text = title;
     this.ShowDialog();
     return m_iMsgResult;
 }
Exemple #4
0
 public SGMMessageResult ShowMsg(String title, String msg, SGMMessageType type)
 {
     updateMsg(type);
     this.lblMessage.Text = msg;
     this.Text            = title;
     this.ShowDialog();
     return(m_iMsgResult);
 }