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