コード例 #1
0
ファイル: Bridge.cs プロジェクト: angelbrunn/Patterns
 public Window()
 {
     if (this.isPlatFormX)
     {
         wndImp = new XWindowImp();
     }
     else if (this.isPlatFormMac)
     {
         wndImp = new MacWindowImp();
     }
 }
コード例 #2
0
ファイル: Bridge.cs プロジェクト: marsxn/college-programming
 public Window()
 {
     if (this.isPlatFormX)
     {
         wndImp = new XWindowImp();
     }
     else if (this.isPlatFormMac)
     {
         wndImp = new MacWindowImp();
     }
 }