Ejemplo n.º 1
0
 public static int show()
 {
     newMsgBox = new MyOKMessageBox();
     newMsgBox.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     newMsgBox.button3.Visible = false;
     newMsgBox.ShowDialog();
     return ret;
 }
Ejemplo n.º 2
0
        public static int show(string title)
        {
            //if (isInfo)
            {
                newMsgBox = new MyOKMessageBox();
                newMsgBox.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                newMsgBox.button1.Visible = false;
                newMsgBox.button2.Visible = false;
                newMsgBox.button3.Visible = true;
                //newMsgBox.button2.Text = "确认";

                newMsgBox.label1.Text = title;
                newMsgBox.ShowDialog();
                //Thread.Sleep(1000);
            }
            return ret;
        }
Ejemplo n.º 3
0
        public static int show(string title, bool needButton)
        {
            if (needButton)
            {
                show(title);
            }
            else
            {
                newMsgBox = new MyOKMessageBox();
                newMsgBox.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                newMsgBox.button1.Visible = false;
                newMsgBox.button2.Visible = false;
                newMsgBox.button3.Visible = false;
                //newMsgBox.button2.Text = "确认";
                newMsgBox.TopMost = true;
                newMsgBox.label1.Text = title;

                newMsgBox.ShowDialog();
            }
            return ret;
        }