public AddMarshrut(Transport.TransPort TPS, int index) { InitializeComponent(); TPStemp = TPS; numericUpDown1.Value = (decimal)TPStemp.Marshrut_A_B_List[index].Price; if (TPStemp.Marshrut_A_B_List[index].Name == "Эконом класс") { radioButton1.Checked = true; } if (TPStemp.Marshrut_A_B_List[index].Name == "Бизнес класс") { radioButton2.Checked = true; } if (TPStemp.Marshrut_A_B_List[index].Name == "Первый класс") { radioButton3.Checked = true; } IndexChange = index; ChangeItem = true; }
public AddMarshrut(Transport.TransPort TPS) { InitializeComponent(); TPStemp = TPS; ChangeItem = false; }