Beispiel #1
0
        public Computer_Details_Form(Panel[] SoftwarePanels, int NumOfPictureboxes, string price, string Cmp_Type, byte[] OperatingSystemImage, string OpSys)
        {
            InitializeComponent();
            for (int i = 0; i < NumOfPictureboxes; ++i)
            {
                Controls.Add(SoftwarePanels[i]);
            }

            PriceLabel.Text       = price;
            SectionNameLabel.Text = Cmp_Type;
            MemoryStream ms = new MemoryStream(OperatingSystemImage);

            CmpPicturebox.Image = Image.FromStream(ms);
            CmpPicturebox.Refresh();
            OperationSystemName.Text = OpSys;
        }
        public Computer_Details_Form(Panel[] SoftwarePanels, int NumOfPictureboxes, string price, string Cmp_Type, byte[] OperatingSystemImage, string OpSys, int UserID, string Status, int cmpUserID, int Cmp_ID, int LastRate)
        {
            Controller_OBJ = new Controller();
            InitializeComponent();
            for (int i = 0; i < NumOfPictureboxes; ++i)
            {
                Controls.Add(SoftwarePanels[i]);
            }

            PriceLabel.Text       = price;
            SectionNameLabel.Text = Cmp_Type;
            MemoryStream ms = new MemoryStream(OperatingSystemImage);

            CmpPicturebox.Image = Image.FromStream(ms);
            CmpPicturebox.Refresh();
            OperationSystemName.Text = OpSys;
            userid         = UserID;
            status         = Status;
            CmpUserID      = cmpUserID;
            CmpIDvar       = Cmp_ID;
            Cmp_Typevar    = Cmp_Type;
            Rate           = LastRate;
            RateLabel.Text = "Rate = " + LastRate.ToString();
        }