private void buttonViewOnMap_Click(object sender, EventArgs e)
 {
     if (isApoint) {
         FormMap formMap = new FormMap(this.latitude, this.longitude, this.Text);
         formMap.Show();
         this.Close();
     } else if (isAline) {
         FormMap formMap = new FormMap(this.latitudeFrom, this.longitudeFrom,this.latitudeTo,this.longitudeTo, this.Text);
         formMap.Show();
         this.Close();
     }
 }
 private void buttonViewOnMap_Click(object sender, EventArgs e)
 {
     if (isApoint)
     {
         FormMap formMap = new FormMap(this.latitude, this.longitude, this.Text);
         formMap.Show();
         this.Close();
     }
     else if (isAline)
     {
         FormMap formMap = new FormMap(this.latitudeFrom, this.longitudeFrom, this.latitudeTo, this.longitudeTo, this.Text);
         formMap.Show();
         this.Close();
     }
 }