public DbProductTreeViewItem(Product product, bool?isChecked = false)
 {
     _dbTreeViewNotifications = Global.DbTreeViewNotifications;
     _product   = product;
     _isChecked = isChecked;
     CreateTreeViewItemTemplate();
 }
Exemplo n.º 2
0
 static Global()
 {
     DbTreeViewNotifications   = new DbTreeViewNotifications();
     FoxeTreeViewNotifications = new FoxeTreeViewNotifications();
     JobNotifications          = new JobNotifications();
     LogNotifications          = new LogNotifications();
     SchedulerStopHandle       = new ManualResetEvent(false);
 }
Exemplo n.º 3
0
 public DbCategoryTreeViewItem(Category category, bool?isChecked = false, int count = 0, ImageType imageType = ImageType.None)
 {
     _dbTreeViewNotifications = Global.DbTreeViewNotifications;
     _count     = count;
     _isChecked = isChecked;
     _category  = category;
     _imageType = imageType;
     CreateTreeViewItemTemplate();
 }
Exemplo n.º 4
0
 private void InitApplication()
 {
     dbContext               = new ProductStoreDbContext();
     DbRootTreeViewNode      = CreateRootDbTreeViewNode();
     dbTreeViewNotifications = Global.DbTreeViewNotifications;
     dbTreeViewNotifications.DeleteDbCategory  += new EventHandler <DbCategoryDeleteEventArgs>(notifications_DeleteCategory);
     dbTreeViewNotifications.DeleteDbProduct   += new EventHandler <DbProductDeleteEventArgs>(notifications_DeleteProduct);
     dbTreeViewNotifications.RefreshDbCategory += new EventHandler <DbCategoryRefreshEventArgs>(notifications_RefreshCategory);
 }