コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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();
        }
コード例 #4
0
        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();
        }