コード例 #1
0
 public DbProductTreeViewItem(Product product, bool?isChecked = false)
 {
     _dbTreeViewNotifications = Global.DbTreeViewNotifications;
     _product   = product;
     _isChecked = isChecked;
     CreateTreeViewItemTemplate();
 }
コード例 #2
0
 static Global()
 {
     DbTreeViewNotifications   = new DbTreeViewNotifications();
     FoxeTreeViewNotifications = new FoxeTreeViewNotifications();
     JobNotifications          = new JobNotifications();
     LogNotifications          = new LogNotifications();
     SchedulerStopHandle       = new ManualResetEvent(false);
 }
コード例 #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();
 }
コード例 #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);
 }