コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            towar.Kolichestvo += Convert.ToInt32(textBox1.Text);
            Postavshik postavshik = (Postavshik)comboBox1.SelectedItem;

            db.a(postavshik, towar, Convert.ToInt32(textBox1.Text));
            db.Save();
            Close();
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            towar.Kolichestvo -= Convert.ToInt32(textBox1.Text);
            Zakashik zakashik = (Zakashik)comboBox1.SelectedItem;

            db.b(zakashik, towar, Convert.ToInt32(textBox1.Text));
            db.Save();
            Close();
        }
コード例 #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            Type type = new Type {
                Name = textBox7.Text
            };

            db.types.Add(type);
            db.Save();
            Close();
        }
コード例 #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            Zakashik zakashik = new Zakashik {
                Name = textBox7.Text, Tel_Zakashiks = new List <string>()
            };

            db.zakashiks.Add(zakashik);
            db.Save();
            Close();
        }
コード例 #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            Postavshik postavshik = new Postavshik {
                Name = textBox7.Text, Tel_Postavshiks = new List <string>()
            };

            db.postavshiks.Add(postavshik);
            db.Save();
            Close();
        }
コード例 #6
0
        private void удалитьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count == 0)
            {
                return;
            }
            History tel1 = (History)listView1.SelectedItems[0].Tag;

            db.historys.Remove(tel1);
            db.Save();
            show();
        }
コード例 #7
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (comboBox1.SelectedItem == null)
            {
                return;
            }
            Towar towar = new Towar();

            towar.Name = textBox7.Text;
            towar.Type = (Type)comboBox1.SelectedItem;
            db.towars.Add(towar);
            db.Save();
            Close();
        }
コード例 #8
0
 private void button1_Click(object sender, EventArgs e)
 {
     db.Save();
     Close();
 }