public void Close() { if (exeUC != null) { exeUC.Close(); parent.Controls.Remove(exeUC); exeUC = null; } }
private void Open() { exeUC = new ExeRunUC(); exeUC.Dock = DockStyle.Fill; string args = string.Format("{0} {1} {2}", strategy.Id, Global.Login.UserName, Global.Login.Password); exeUC.Open(Global.ExePath, Global.ExeName, args); parent.Controls.Add(exeUC); exeUC.BringToFront(); }