private void NuevoVehiculoToolStripMenuItem_Click(object sender, EventArgs e) { pnlContenedor.Controls.Clear(); frmAuto frm = new frmAuto(); frm.MdiParent = this; this.pnlContenedor.Controls.Add(frm); frm.Show(); }
private void Start() { LoginM.CheckOnline = new Thread(delegate() { Func.GetOnline(GameM, LoginM); }) { IsBackground = true }; LoginM.CheckOnline.Start(); ClientScan = new Thread(delegate() { Func.GetClient(GameM, LoginM); }) { IsBackground = true }; ClientScan.Start(); Window Auto = Window.GetWindow(App.Current.MainWindow); frmAuto A = new frmAuto(); Auto.Close(); A.Show(); }