Exemplo n.º 1
0
        private void ExecuteDeleteCaptain()
        {
            CaptainUIEventArgs newEventArgs =
                new CaptainUIEventArgs(
                    CaptainUIRoutedEvent,
                    Id,
                    "Delete"
                    );

            RaiseEvent(newEventArgs);
        }
Exemplo n.º 2
0
        private void ExecuteEditCaptainSaveCommand()
        {
            CaptainUIEventArgs newEventArgs =
                new CaptainUIEventArgs(
                    CaptainUIRoutedEvent,
                    Id,
                    "Save",
                    new CaptainModel()
            {
                Id         = Id,
                PersonName = PersonName,
                Age        = Age,
                Skill      = Skill,
                Resources  = CaptainsResources,
                Loyalty    = Loyalty
            }
                    );

            RaiseEvent(newEventArgs);
            MouseArea.Visibility = Visibility.Visible;
        }