private void AHRemoveFunction_Click(object sender, RoutedEventArgs e) { StackPanel SP = (StackPanel)this.Parent; SP.Children.Remove(this); MReference.AHControl.FuncNames.Remove(FunctionData.FunctionName); MReference.UnregisterName(FunctionData.FunctionName.Replace('-', '_')); }
private void RemoveFunction(object sender, RoutedEventArgs e) { StackPanel SP = (StackPanel)this.Parent; SP.Children.Remove(this); MReference.UnregisterName(FunctionName); MReference.VedAPI.FNames.Remove(FunctionName); MReference.VedAPI.GenerateButton(sender, e); }