Exemple #1
0
        private void New_Click(object sender, RoutedEventArgs e)
        {
            var new_win = new NewMembership(new UserModel());

            new_win.Show();

            this.Close();
        }
Exemple #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Button b = (sender) as Button;

            if (b.CommandParameter != null)
            {
                UserModel ppp       = user.GetUserById(int.Parse(b.CommandParameter.ToString()));
                var       addWindow = new NewMembership(ppp);
                //addWindow.ShowDialog();

                addWindow.Show();
                this.Close();
            }
        }