//加载临时界面 private void LoadTempForm(SplitContainer sc) { if (tmpForm != null) { tmpForm.Close(); } TempForm cForm = new TempForm(CJTopClassID, OldCJTopClassID); cForm.TopLevel = false; cForm.FormBorderStyle = FormBorderStyle.None; cForm.Dock = DockStyle.Fill; splitContainer1.Panel2.Controls.Clear(); splitContainer1.Panel2.Controls.Add(cForm); tmpForm = cForm; cForm.Show(); }
public static void Show(int seconds, string text) { TempForm tf = new TempForm(seconds, text); tf.Show(); }