private void btn_pirep_Click(object sender, EventArgs e) { if (model != null) { Point p = new Point(this.Parent.Location.X + this.Parent.Width, this.Parent.Location.Y); PirepForm pf = new PirepForm(p); model.Callsign = IPSConfiguration.CALLSIGN; model.VirtualAirlineID = IPSConfiguration.VA_ID; pf.FillPirep(model); pf.Visible = true; } else { Error("No data to fill pirep"); } }