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; } }
public SGMMessageResult ShowMsg(String title, String msg, SGMMessageType type) { updateMsg(type); this.lblMessage.Text = msg; this.Text = title; this.ShowDialog(); return m_iMsgResult; }
public SGMMessageResult ShowMsg(String title, String msg, SGMMessageType type) { updateMsg(type); this.lblMessage.Text = msg; this.Text = title; this.ShowDialog(); return(m_iMsgResult); }