Пример #1
0
        private void modify_button_for_items(DataGridViewRow startingBalanceRow)
        {
            if (current_show_index == (int)item_picker.item)
            {
                model.Item item            = this.item_Dao.get_item_from_row(startingBalanceRow);
                Add_Item   headphones_View = new Add_Item(1, item);
                change_panel_content(headphones_View);
            }

            else if (current_show_index == (int)item_picker.headphone)
            {
                model.Headphone item            = this.headphohe_Dao.get_item_from_row(startingBalanceRow);
                Add_Headphone   headphones_View = new Add_Headphone(1, item);
                change_panel_content(headphones_View);
            }
            else if (current_show_index == (int)item_picker.book)
            {
                model.Book item            = book_dao.get_item_from_row(startingBalanceRow);
                Add_book   headphones_View = new Add_book(1, item);
                change_panel_content(headphones_View);
            }
            else
            {
                MessageBox.Show(resource_manager.GetString("error_category", CultureInfo.CurrentCulture));
            }
        }
Пример #2
0
        private void add_button_for_items()
        {
            if (current_show_index == (int)item_picker.item)
            {
                Add_Item headphones_View = new Add_Item();
                change_panel_content(headphones_View);
            }
            else if (current_show_index == (int)item_picker.headphone)
            {
                Add_Headphone headphones_View = new Add_Headphone();
                change_panel_content(headphones_View);
            }

            else if (current_show_index == (int)item_picker.book)
            {
                Add_book headphones_View = new Add_book();
                change_panel_content(headphones_View);
            }
        }
Пример #3
0
        private void button6_Click(object sender, EventArgs e)
        {
            Add_Item AD = new Add_Item();

            AD.ShowDialog();
        }
Пример #4
0
        private void AddBtnForGrid_Click123(object sender, EventArgs e)
        {
            Add_Item ai = new Add_Item();

            ai.ShowDialog();
        }