public CustomTreeViewItem(string title) { bdd = new mediametrieEntities(); req = new requete(); Title.Text = title; chkBox.Content = Title; Title.AddHandler(TextBlock.MouseDownEvent, new MouseButtonEventHandler(change_label)); chkBox.AddHandler(CheckBox.CheckedEvent, new RoutedEventHandler(chkBox_Checked)); Header = chkBox; }
public MainWindow() { InitializeComponent(); m_containers = new List <Container>(); bdd = new mediametrieEntities(); req = new requete(); checkTaskDay(); LoadDB(); comboBox.SelectedIndex = 0; remContainer.IsEnabled = true; currentIndex = 0; treeView.ItemsSource = m_containers[0].m_Tasks; }
public Container() { bdd = new mediametrieEntities(); req = new requete(); this.m_Tasks = new ObservableCollection <CustomTreeViewItem>(); }