예제 #1
0
        private void добавитьТоварToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ClassMagic.item_stage = 1;
            Form_view_item form = new Form_view_item();

            form.Show();
        }
예제 #2
0
        private void изменитьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ClassMagic.id_item = (int)dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value;

            ClassMagic.index_item = dataGridView1.CurrentRow.Index;
            ClassMagic.item_stage = 3;
            Form_view_item form = new Form_view_item();

            form.Show();
        }
예제 #3
0
        private void button_view_item_Click(object sender, EventArgs e)
        {
            ClassMagic.item_stage = 2;
            int index;

            index = dataGridView1.CurrentRow.Index;
            ClassMagic.index_item = index;

            Form_view_item form = new Form_view_item();

            form.Show();
        }