Exemplo n.º 1
0
 private void UpdateImformation(VeMayBay v)
 {
     txtFullName.Text = v.FullName;
     txtTo.Text       = v.To;
     txtFrom.Text     = v.From;
     txtIssue.Text    = v.DateTo;
     txtExpiry.Text   = v.DateEnd;
     txtBaggage.Text  = v.Bagge;
     txtNo.Text       = v.DocumentNo.No;
     label5.Text      = v.DocumentNo.Name;
 }
Exemplo n.º 2
0
 private void btnBook_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrWhiteSpace(txtTo.Text) && !string.IsNullOrWhiteSpace(txtFrom.Text) && !string.IsNullOrWhiteSpace(txtNo.Text))
     {
         if (Baggage.SelectedItem == null)
         {
             Baggage.SelectedItem = Baggage.Items[0];
         }
         var documentNo     = new DocumentNo(lb8.Text, txtNo.Text);
         var dateTo         = monthCalendarTo.SelectionRange.Start.ToShortDateString();
         var dateEnd        = monthCalendarFrom.SelectionRange.Start.ToShortDateString();
         var travelDocument = TravelDocument();
         var x = new VeMayBay(txtFirstName.Text, txtLastName.Text, txtTo.Text, txtFrom.Text, travelDocument, txtNo.Text, dateTo, dateEnd, Baggage.SelectedItem.ToString());
         new Imformation(x).ShowDialog();
     }
     else
     {
         MessageBox.Show("not null ỏ white in text to,text from ,text no");
     }
 }
Exemplo n.º 3
0
 public Imformation(VeMayBay veMayBay) : this()
 {
     this.VeMayBay = veMayBay;
     UpdateImformation(veMayBay);
 }