void brushList_BrushChanged(object sender, BrushChangeEventArgs e) { if (curDbInfoTab.CurrentTreeView.SelectedItem != null) { curDbInfoTab.CurrentTreeView.SelectedItem.MyForeground = e.selectedBrush; curDbInfoTab.SaveTreeToDB(); } }
private void btnCancel_Click(object sender, RoutedEventArgs e) { //保存树结构 curDbInfoTab.SaveTreeToDB(LabelTreeView); this.Close(); }