public Plane(int id) { string st = WorkFile.ReadLine(id); string[] ss = st.Split(';'); id = Convert.ToInt32(ss[0]); Model = ss[1]; Max = Convert.ToInt32(ss[2]); Speed = Convert.ToInt32(ss[3]); }
public void Save() { WorkFile.AddUpdate(id, Model, Max, Speed); }
private void FillData() { dataGridView1.DataSource = WorkFile.ReadTable(); }