コード例 #1
0
        static void Main()
        {
            //Create the interfaces with the corresponding classes
            Interface_Image          imageInterface          = new Image();
            Interface_Filters        filtersInterface        = new Filters();
            Interface_EdgeDetections edgeDetectionsInterface = new EdgeDetections();

            //Create the Business Layer with the imageInterface
            BusinessLayer business = new BusinessLayer(imageInterface, filtersInterface, edgeDetectionsInterface);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Create the form with the Business layer as a parameter
            Application.Run(new MainForm(business));
        }
コード例 #2
0
 public MainForm(BusinessLayer business)
 {
     this.businessLayer = business;
     InitializeComponent();
 }