Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: Constructor/Operations/AirfieldSettingsForm.cs
- ===================================================================
- --- Constructor/Operations/AirfieldSettingsForm.cs (revision 6257)
- +++ Constructor/Operations/AirfieldSettingsForm.cs (working copy)
- @@ -28,13 +28,17 @@
- settings.AddVar("courses", new StringTableVariable(courses_dataGridView));
- settings.Read();
- - names_dataGridView.Rows.Add();
- - names_dataGridView.Rows.Add();
- + for (int i = 2; i != names_dataGridView.RowCount; )
- + names_dataGridView.Rows.RemoveAt(i);
- + while (names_dataGridView.RowCount < 2)
- + names_dataGridView.Rows.Add();
- names_dataGridView[0, 0].Value = "en";
- names_dataGridView[0, 1].Value = "ru";
- - callsigns_dataGridView.Rows.Add();
- - callsigns_dataGridView.Rows.Add();
- + for (int i = 2; i != callsigns_dataGridView.RowCount; )
- + callsigns_dataGridView.Rows.RemoveAt(i);
- + while (callsigns_dataGridView.RowCount < 2)
- + callsigns_dataGridView.Rows.Add();
- callsigns_dataGridView[0, 0].Value = "USSR";
- callsigns_dataGridView[0, 1].Value = "NATO";
- }
Advertisement
Add Comment
Please, Sign In to add comment