// execute edit-member command. Opens member dialog

        private void EditCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            var window = new WindowMember();

            window.Owner = this;

            if (window.ShowDialog() == true)
            {
                CommandManager.InvalidateRequerySuggested();
            }
        }
        // executes add-member command. Opens member dialog

        private void AddCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            var window = new WindowMember();

            window.Owner       = this;
            window.IsNewMember = true;

            if (window.ShowDialog() == true)
            {
                this.MemberListBox.ScrollIntoView(ViewModel.CurrentMember);
                CommandManager.InvalidateRequerySuggested();
            }
        }
Ejemplo n.º 3
0
        // execute edit-member command. Opens member dialog

        private void EditCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            var window = new WindowMember();
            window.Owner = this;

            if (window.ShowDialog() == true)
            {
                CommandManager.InvalidateRequerySuggested();
            }
        }
Ejemplo n.º 4
0
        // executes add-member command. Opens member dialog

        private void AddCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            var window = new WindowMember();
            window.Owner = this;
            window.IsNewMember = true;

            if (window.ShowDialog() == true)
            {
                this.MemberListBox.ScrollIntoView(ViewModel.CurrentMember);
                CommandManager.InvalidateRequerySuggested();
            }
        }