public static int show() { newMsgBox = new Form_messagebox(); newMsgBox.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; newMsgBox.button3.Visible = false; newMsgBox.progressBar1.Visible = false; newMsgBox.ShowDialog(); return ret; }
public static int show(string title) { //if (isInfo) { newMsgBox = new Form_messagebox(); newMsgBox.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; newMsgBox.label2.Visible = false; newMsgBox.button1.Visible = false; newMsgBox.button2.Visible = false; newMsgBox.button3.Visible = true; //newMsgBox.button2.Text = "确认"; newMsgBox.progressBar1.Visible = false; newMsgBox.label1.Text = title; newMsgBox.ShowDialog(); //Thread.Sleep(1000); } return ret; }
public static int show(string title, bool needButton) { if (needButton) { show(title); } else { newMsgBox = new Form_messagebox(); newMsgBox.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; newMsgBox.label2.Visible = false; newMsgBox.button1.Visible = false; newMsgBox.button2.Visible = false; newMsgBox.button3.Visible = false; //newMsgBox.button2.Text = "确认"; newMsgBox.TopMost = true; newMsgBox.label1.Text = title; setLabel1PosStatic(); newMsgBox.ShowDialog(); } return ret; }
private void showMyMesgBox() { if (myInfoMessageBox == null) { myInfoMessageBox = new Form_messagebox(); } myInfoMessageBox.showInfoWithBar("正在扫描...", conf.InvDuration, conf.InvDuration*100/(4+3)); //Form_messagebox.dispose(); }