/// <summary> /// 删除函数 /// </summary> /// <param name="parentName">所属场景名</param> /// <param name="functionName">函数名</param> public void DashDeleteFunction(string parentName, string functionName) { Halation.project.GetScene(parentName).DeleteFunction(functionName); string callName = String.Format("{0}@{1}", functionName, Halation.projectTreeChosen.Parent.Text); HalationInvoker.RemoveScene(callName); this.RefreshProjectTree(); }
/// <summary> /// 删除场景 /// </summary> /// <param name="scenario">场景名</param> public void DashDeleteScene(string scenario) { Halation.project.DeleteScene(scenario); HalationInvoker.RemoveScene(scenario); this.RefreshProjectTree(); }