Exemplo n.º 1
0
        public Story_Details_Form(string StroyName, string StoryPrice, string SectionName, byte[] image)
        {
            InitializeComponent();
            StoryNameLabel.Text   = StroyName;
            SectionNameLabel.Text = SectionName;
            PriceLabel.Text       = StoryPrice + " LE";
            MemoryStream ms = new MemoryStream(image);

            Story_ImagePicturebox.Image = Image.FromStream(ms);
            Story_ImagePicturebox.Refresh();
        }
Exemplo n.º 2
0
        public Story_Details_Form(string StroyName, string StoryPrice, string SectionName, byte[] image, int UserID, string Status, int storyUserID, int Story_ID, int LastRate)
        {
            Controller_OBJ = new Controller();
            InitializeComponent();
            StoryNameLabel.Text   = StroyName;
            SectionNameLabel.Text = SectionName;
            PriceLabel.Text       = StoryPrice + " LE";
            MemoryStream ms = new MemoryStream(image);

            Story_ImagePicturebox.Image = Image.FromStream(ms);
            Story_ImagePicturebox.Refresh();
            userid               = UserID;
            status               = Status;
            StoryUserID          = storyUserID;
            StoryIDvar           = Story_ID;
            Story_Typevar        = SectionName;
            Rate                 = LastRate;
            StName               = StroyName;
            StPrice              = StoryPrice;
            SecName              = SectionName;
            Img                  = image;
            Story_RateLabel.Text = "Rate = " + Rate.ToString();
        }