private void ButtonSave_Click(object sender, RoutedEventArgs e) { TreeService.Tree newTree = new TreeService.Tree() { CreatorName = NameTextBox.Text, Message = MessageTextBox.Text }; TreeProxy.InsertTreeAsync(newTree); }
public TreeViewModel() { this.tree = new TreeService.Tree(); }
public TreeViewModel(TreeService.Tree tree) { this.tree = tree; }