Ejemplo n.º 1
0
        private string SearchBoxFieldBefore; // search field after deleting one character

        public Form1()
        {
            InitializeComponent();                      // Initialize the Form Window

            Controller Contr     = new Controller();    // Create the new instance of Controller class
            Model      ModelInst = new Model(this);     // Create the new instance of Model class

            Contr.AddButtonPrepare(this);               // sign up for Add button event from inside the Controller class
            ModelInst.AddButtonSignUp(this);            // sign up for Add button event from inside the Model class
            ModelInst.SearchButtonSignUp(this);         // sign up for Search button pushed event from inside the Model class
            ModelInst.SaveButtonSignUp(this);           // sign up for Save button pushed event from inside the Model class
            ModelInst.OpenFormSignUp(this);             // sign up for First time Window opened event from inside the Model class
            ModelInst.SearchBoxTextChangedSignUp(this); // sign up for the any text changes in the Search Box event
            FirstRun = false;                           //
        }