コード例 #1
0
ファイル: Plane.cs プロジェクト: sergiycheck/Project
 // 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);
     }
 }
コード例 #2
0
ファイル: Plane.cs プロジェクト: sergiycheck/Project
 public virtual void Display()
 {
     formForPlane = new FormPlane(PlaneImg, MaxSitsHeight, MaxSitsWidth);
     formForPlane.Controls.Find("labelNameOfPlane", false)[0].Text = "Name : " + Name + ". Firm : " + Firm;
     formForPlane.ShowDialog();
 }