Exemple #1
0
        public CategoryDialog(Database.DataModelsDataContext DB)
        {
            InitializeComponent();

            this.category = new Database.Category();
            this.newModel = true;
            this.DB       = DB;
        }
Exemple #2
0
        public CategoryDialog(Database.Category category, Database.DataModelsDataContext DB)
        {
            InitializeComponent();

            this.category = category;
            this.newModel = false;
            this.DB       = DB;
        }
Exemple #3
0
        public ProductDialog(Database.Product product, Database.DataModelsDataContext DB)
        {
            InitializeComponent();

            this.product  = product;
            this.newModel = false;
            this.DB       = DB;
        }
Exemple #4
0
        public ProductDialog(Database.DataModelsDataContext DB)
        {
            InitializeComponent();

            this.product  = new Database.Product();
            this.newModel = true;
            deleteButton.Hide();

            this.DB = DB;
        }