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