Exemplo n.º 1
0
        private void BackToMenuEditContact_Click(object sender, RoutedEventArgs e)
        {
            Contacts_View menu = new Contacts_View();

            menu.Show();
            this.Close();
        }
Exemplo n.º 2
0
 private void BoutonLogin_Click(object sender, RoutedEventArgs e)
 {
     BLL.BLL bll = new BLL.BLL(iD.Text);
     if (bll.login(password.Text) == true)
     {
         Contacts_View fenetreContact = new Contacts_View();
         fenetreContact.Show();
         this.Close();
     }
     else
     {
         messageLogin.Content = "Incorrect ID or password";
     }
 }
Exemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.fenetreContacts = ((View.Contacts_View)(target));
                return;

            case 2:
                this.userName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.boutonShow = ((System.Windows.Controls.Button)(target));

            #line 12 "..\..\Contacts_View.xaml"
                this.boutonShow.Click += new System.Windows.RoutedEventHandler(this.BoutonShow_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.boutonAdd = ((System.Windows.Controls.Button)(target));

            #line 13 "..\..\Contacts_View.xaml"
                this.boutonAdd.Click += new System.Windows.RoutedEventHandler(this.BoutonAdd_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.boutonDelete = ((System.Windows.Controls.Button)(target));

            #line 14 "..\..\Contacts_View.xaml"
                this.boutonDelete.Click += new System.Windows.RoutedEventHandler(this.BoutonDelete_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.boutonSearch = ((System.Windows.Controls.Button)(target));

            #line 15 "..\..\Contacts_View.xaml"
                this.boutonSearch.Click += new System.Windows.RoutedEventHandler(this.BoutonSearch_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.boutonEdit = ((System.Windows.Controls.Button)(target));

            #line 16 "..\..\Contacts_View.xaml"
                this.boutonEdit.Click += new System.Windows.RoutedEventHandler(this.BoutonEdit_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.boutonSignOut = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\Contacts_View.xaml"
                this.boutonSignOut.Click += new System.Windows.RoutedEventHandler(this.BoutonSignOut_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }