Beispiel #1
0
        public Magazine(int id)
        {
            string st = WorkWithFile.ReadLine(id);

            string[] ss = st.Split(';');
            id      = Convert.ToInt32(ss[0]);
            Name    = ss[1];
            Izdatel = ss[2];
            Price   = ss[3];
            Number  = ss[4];
        }
Beispiel #2
0
 public void Save()
 {
     WorkWithFile.AddUpdate(id, Name, Izdatel, Price, Number);
 }
Beispiel #3
0
 private void FillData()
 {
     dataGridView1.DataSource = WorkWithFile.ReadTable();
 }