private void OnAddText(object sender, RoutedEventArgs e) { FunctionItems.Add(new TextFunctionItem() { Value = "text" }); }
private void OnAddBoolean(object sender, RoutedEventArgs e) { FunctionItems.Add(new BooleanFunctionItem() { Value = "bool" + b }); b++; }
private void OnAddNumber(object sender, RoutedEventArgs e) { FunctionItems.Add(new NumberFunctionItem() { Value = "number" + n }); n++; }
private void OnAddString(object sender, RoutedEventArgs e) { FunctionItems.Add(new StringFunctionItem() { Value = "string" + str }); str++; }
private void OnDelete(object sender, RoutedEventArgs e) { if (lastObject != null && lastObject is FunctionItem) { FunctionItem item = lastObject as FunctionItem; if (FunctionItems.Contains(item)) { FunctionItems.Remove(item); } } DeleteButton.Visibility = Visibility.Collapsed; }