示例#1
0
 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;
 }
示例#2
0
 public AddMarshrut(Transport.TransPort TPS)
 {
     InitializeComponent();
     TPStemp    = TPS;
     ChangeItem = false;
 }