Exemple #1
0
        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]);
        }
Exemple #2
0
 public void Save()
 {
     WorkFile.AddUpdate(id, Model, Max, Speed);
 }
Exemple #3
0
 private void FillData()
 {
     dataGridView1.DataSource = WorkFile.ReadTable();
 }