Ejemplo n.º 1
0
 private void OpenFormLoc()
 {
     using (var form = new FormLoc())
     {
         if (form.ShowDialog() != DialogResult.OK)
         {
             return;
         }
         if (Data.CheckIn(form.Loc, form.Transport, form.Distance))
         {
             SetForm();
         }
     }
 }
Ejemplo n.º 2
0
 private void OpenFormLoc()
 {
     if (IsViewing())
     {
         return;
     }
     using (var form = new FormLoc())
     {
         if (form.ShowDialog() != DialogResult.OK)
         {
             return;
         }
         lblLocation.Text       = _add.Location = form.Loc;
         lblLocation.Font       = new Font(lblTransport.Font, FontStyle.Regular);
         lblTransportValue.Text = _add.ModeOfTransport = form.Transport;
         _add.Distance          = form.Distance;
     }
 }
Ejemplo n.º 3
0
 private void OpenFormLoc()
 {
     using (var form = new FormLoc())
     {
         if (form.ShowDialog() != DialogResult.OK) return;
         if (Data.CheckIn(form.Loc, form.Transport, form.Distance))
             SetForm();
     }
 }
Ejemplo n.º 4
0
 private void OpenFormLoc()
 {
     if (IsViewing())
         return;
     using (var form = new FormLoc())
     {
         if (form.ShowDialog() != DialogResult.OK) return;
         lblLocation.Text = _add.Location = form.Loc;
         lblLocation.Font = new Font(lblTransport.Font, FontStyle.Regular);
         lblTransportValue.Text = _add.ModeOfTransport = form.Transport;
         _add.Distance = form.Distance;
     }
 }