Esempio n. 1
0
        private void btnLocalidades_Click(object sender, RoutedEventArgs e)
        {
            if (this.userControlAssembly != null)
            {
                this.genericUserControl = Activator.CreateInstance(userControlAssembly.GetType(LOCALIDADES_FORM)) as UserTemplateInterface;
                if (this.genericUserControl != null)
                {
                    this.genericUserControl.Initialize();

                    this.CreateNewWindow(this.genericUserControl.MainInterface);
                }
            }
        }
Esempio n. 2
0
        private void btnPrestamos_Click(object sender, RoutedEventArgs e)
        {
            // change the path here
            if (this.userControlAssembly != null)
            {
                this.genericUserControl = Activator.CreateInstance(userControlAssembly.GetType(PRESTAMOS_FORM)) as UserTemplateInterface;
                if (this.genericUserControl != null)
                {
                    this.genericUserControl.Initialize();

                    /* this.Content = this.genericUserControl.MainInterface; */
                    this.CreateNewWindow(this.genericUserControl.MainInterface);
                }
            }
        }
Esempio n. 3
0
        private void btnPaises_Click(object sender, RoutedEventArgs e)
        {
            // change the path here
            if (this.userControlAssembly != null)
            {
                this.genericUserControl = Activator.CreateInstance(userControlAssembly.GetType(PAISES_FORM)) as UserTemplateInterface;
                if (this.genericUserControl != null)
                {
                    this.genericUserControl.Initialize();

                    // It should show the user control here
                    /* this.contentControl.Content = this.testUserControl1.MainInterface; */
                    /* this.Content = this.testUse rControl1.MainInterface.Content; */


                    /* this.Content = this.genericUserControl.MainInterface; */
                    this.CreateNewWindow(this.genericUserControl.MainInterface);
                }
            }
        }