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]; }
public void Save() { WorkWithFile.AddUpdate(id, Name, Izdatel, Price, Number); }
private void FillData() { dataGridView1.DataSource = WorkWithFile.ReadTable(); }