// compare by sits public void SetSitsForClient(Client client) { if (formForPlane != null) { formForPlane.ShowDialog(); formForPlane.SetSits(client); } else { formForPlane = new FormPlane(PlaneImg, MaxSitsHeight, MaxSitsWidth); formForPlane.Controls.Find("labelNameOfPlane", false)[0].Text = "Name : " + Name + ". Firm : " + Firm; formForPlane.ShowDialog(); formForPlane.SetSits(client); } }
public virtual void Display() { formForPlane = new FormPlane(PlaneImg, MaxSitsHeight, MaxSitsWidth); formForPlane.Controls.Find("labelNameOfPlane", false)[0].Text = "Name : " + Name + ". Firm : " + Firm; formForPlane.ShowDialog(); }