public TicketBuy(BuyT bt) { InitializeComponent(); this.bt = bt; this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen; fr.Content = new TicketInformation(bt, this); this.path1 = bt.path1; this.path2 = bt.path2; if (BuyT.chang) { this.Resources.MergedDictionaries.Remove(path1); this.Resources.MergedDictionaries.Add(path2); } }
public Type1(BuyT bt) { InitializeComponent(); this.bt = bt; if (bt.selected) { numl.Text = bt.numline.Text; } else { numl.IsEnabled = true; bt.end1.Content = "null"; } bt.numline.Text = numl.Text; }
public TicketInformation(BuyT bt, TicketBuy tb) { InitializeComponent(); this.bt = bt; this.tb = tb; if (BuyT.chang) { this.Resources.MergedDictionaries.Remove(bt.path1); this.Resources.MergedDictionaries.Add(bt.path2); } Ll1.Content = bt.ptype.Content; Label1.Content = bt.end1.Content; Label2.Content = bt.Tnumber.Content; Label6.Content = bt.numline.Text; if (Ll1.Content.ToString() == "单程票") { if (int.TryParse(Label6.Content.ToString(), out c) != false) { b = c; } } else if (Ll1.Content.ToString() == "双程票") { if (int.TryParse(Label6.Content.ToString(), out c) != false) { b = 2 * c; } } Label3.Content = b.ToString(); if (int.TryParse(Label2.Content.ToString(), out c) != false) { bln = b * c; } Label4.Content = bln.ToString(); tb.ubla.Content = Label4.Content; tb.pprice.Content = Label3.Content; tb.pnum.Content = Label2.Content; }
public OneRoutine(BuyT bt) { InitializeComponent(); this.bt = bt; bt.start1.Content = "市体育中心"; }
public Routine(BuyT bt) { InitializeComponent(); this.bt = bt; }
public TwoRoutine(BuyT bt) { InitializeComponent(); this.bt = bt; bt.start1.Content = "刘庄"; }