public brandEdit(Brand.Brand brand, adminPanel adminForm) { this.brand = brand; this.adminPanel = adminForm; InitializeComponent(); MaterialSkinManager materialUIManager = MaterialSkinManager.Instance; materialUIManager.AddFormToManage(this); materialUIManager.Theme = MaterialSkinManager.Themes.LIGHT; materialUIManager.ColorScheme = new ColorScheme( Primary.Blue400, Primary.Blue500, Primary.Blue500, Accent.Orange200, TextShade.WHITE ); if (brand.ID == 0) { idPlaceHolder.Text = "Nuova Marca"; } else { idPlaceHolder.Text = brand.ID.ToString(); } brandName.Text = brand.name; }
public categoryEdit(Category.Category category, adminPanel adminForm) { this.category = category; this.adminPanel = adminForm; InitializeComponent(); MaterialSkinManager materialUIManager = MaterialSkinManager.Instance; materialUIManager.AddFormToManage(this); materialUIManager.Theme = MaterialSkinManager.Themes.LIGHT; materialUIManager.ColorScheme = new ColorScheme( Primary.Blue400, Primary.Blue500, Primary.Blue500, Accent.Orange200, TextShade.WHITE ); if (category.ID == 0) { idPlaceHolder.Text = "Nuova Categoria"; } else { idPlaceHolder.Text = category.ID.ToString(); } categoryName.Text = category.name; }
public orderDetail(Order.Order order, adminPanel adminPanel) { this.order = order; this.adminPanel = adminPanel; InitializeComponent(); MaterialSkinManager materialUIManager = MaterialSkinManager.Instance; materialUIManager.AddFormToManage(this); materialUIManager.Theme = MaterialSkinManager.Themes.LIGHT; materialUIManager.ColorScheme = new ColorScheme( Primary.Blue400, Primary.Blue500, Primary.Blue500, Accent.Orange200, TextShade.WHITE ); loadDetails(); }
public productEdit(Product.Product product, adminPanel adminForm) { this.product = product; this.adminPanel = adminForm; InitializeComponent(); MaterialSkinManager materialUIManager = MaterialSkinManager.Instance; materialUIManager.AddFormToManage(this); materialUIManager.Theme = MaterialSkinManager.Themes.LIGHT; materialUIManager.ColorScheme = new ColorScheme( Primary.Blue400, Primary.Blue500, Primary.Blue500, Accent.Orange200, TextShade.WHITE ); productBrand.DisplayMember = "name"; productBrand.ValueMember = "ID"; productCategory.DisplayMember = "name"; productCategory.ValueMember = "ID"; this.loadProduct(); }