public UploadProductForm(String email, SellForm f3)
 {
     InitializeComponent();
     this.email = email;
     form3      = f3;
     set_pic();
     openFileDialog1.Filter = "Image Files (*.bmp, *.jpg, *.png)|*.bmp;*.jpg;*.png";
 }
        public ModifyProductForm(String email, int index, SellForm form3)
        {
            InitializeComponent();

            this.digiger    = index;
            this.mail       = email;
            this.email.Text = mail;
            f3 = form3;
            setvalue();
            openFileDialog1.Filter = "Image Files (*.bmp, *.jpg, *.png)|*.bmp;*.jpg;*.png";
        }
Пример #3
0
        private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {
            if (frmSell.IsDisposed)
            {
                frmSell       = new SellForm();
                frmSell.Sold += frmSell_Sold;
            }

            currentIndex = lstResults.SelectedIndices[0];

            frmSell.ShowForm(items[currentIndex]);
        }
Пример #4
0
        private void button3_Click(object sender, EventArgs e)
        {
            if (ActiveMdiChild != null)
            {
                ActiveMdiChild.Close();
            }

            SellForm f3 = new SellForm(email.Text.ToString());

            f3.users.Text = username.Text;
            OpenForm(f3);

            this.button1.Enabled = true;
            this.button2.Enabled = true;
            this.button3.Enabled = false;
        }
Пример #5
0
        public Form1()
        {
            InitializeComponent();

            items  = new List <InventoryItem>();
            orders = new List <Order>();

            frmAdd    = new AddForm();
            frmSell   = new SellForm();
            frmRemove = new RemoveForm();

            //frm.MdiParent = this;
            frmAdd.InfoAdded   += frm_InfoAdded;
            frmAdd.InfoUpdated += frmAdd_InfoUpdated;
            frmSell.Sold       += frmSell_Sold;
            frmRemove.Removed  += frmRemove_Removed;

            DB.onEvent += DB_onEvent;

            items  = all;
            orders = allOrders;

            ReadRecords();
        }