Example #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            ItemDisc Item = new ItemDisc();

            Item.name     = Name_txt.Text;
            Item.price    = float.Parse(Price_txt.Text);
            Item.Quantity = int.Parse(Quantity_txt.Text);
            Item.Type     = Category_txt.Text;
            Item.image    = File.ReadAllBytes(label4.Text);
            Transmitter.InsertIntoTable(Item);
            Name_txt.Text     = null;
            Price_txt.Text    = null;
            Quantity_txt.Text = null;
            Category_txt.Text = null;
            time.Start();
            EndingLabel.Visible = true;
            label4.Text         = "No Path";
        }