Esempio n. 1
0
        private void add_btn_Click(object sender, EventArgs e)
        {
            switch (comboBox1.GetItemText(this.comboBox1.SelectedItem))
            {
            case "Clients":
                Add_Client_form form2 = new Add_Client_form();
                form2.Show();

                break;

            case "Invoices":
                Add_Invoice invoice_form = new Add_Invoice();
                invoice_form.Show();

                break;

            case "Drinks":
                Add_Drink drinks_form = new Add_Drink();
                drinks_form.Show();

                break;

            case "Invoice Items":
                Add_InvoiceItem1 form = new Add_InvoiceItem1();
                form.Show();

                break;

            case "Distributors":
                Add_Distributor distributor_form = new Add_Distributor();
                distributor_form.Show();

                break;
            }
        }
Esempio n. 2
0
        public Edit_Invoice_Form()
        {
            InitializeComponent();
            Database    database = new Database();
            Add_Invoice obj      = new Add_Invoice();

            CB_clients.DataSource    = obj.getClientsSQL(database);
            CB_clients.ValueMember   = "ID";
            CB_clients.DisplayMember = "name";
            UpdateTextField();
        }