示例#1
0
        public Main()
        {
            InitializeComponent();
            databaseConnection = DatabaseConnection.GetInstance();

            gbShowMain.Text = "";
            groupBox2.Text  = "";
            chainInit       = new UserInitChain(this);
            chainInit.Next(new GamesInitChain(this))
            .Next(new CountriesInitChain(this))
            .Next(new GenresInitChain(this));


            chainColumn1 = new UserChain(this);
            chainColumn1.Next(new GamesChain(this))
            .Next(new CountriesChain(this))
            .Next(new GenresChain(this));

            chainColumn2 = new User2_Chain(this);
            chainColumn2.Next(new Games2_Chain(this));

            deleteChainColumn1 = new DeleteCountry(this);
            deleteChainColumn1.Next(new DeleteGenre(this))
            .Next(new DeleteUser(this))
            .Next(new DeleteGame(this));

            deleteChainColumn2 = new DeleteScore1(this);
            deleteChainColumn2.Next(new DeleteScore2(this));

            deleteChainColumn3 = new DeleteGameGenre(this);

            modifyChainColumn1 = new ModifyCountry(this);
            modifyChainColumn1.Next(new ModifyGenre(this))
            .Next(new ModifyGame(this))
            .Next(new ModifyUser(this));
        }