예제 #1
0
 public StewardUIEventArgs(
     RoutedEvent routedEvent,
     int id,
     string action,
     StewardModel stewardModel = null
     )
     : base(routedEvent)
 {
     _id           = id;
     _action       = action;
     _stewardModel = stewardModel;
 }
예제 #2
0
 public IncomeUIEventArgs(
     RoutedEvent routedEvent,
     string action,
     StewardModel stewardModel = null,
     string income             = "",
     int fiefId = -1
     )
     : base(routedEvent)
 {
     _action       = action;
     _stewardModel = stewardModel;
     _income       = income;
     _fiefId       = fiefId;
 }
예제 #3
0
 private void ExecuteEditButtonCommand()
 {
     _oldStewardModel = new StewardModel()
     {
         Age        = Age,
         Bonus      = Bonus,
         Family     = Family,
         Loyalty    = Loyalty,
         PersonName = Name,
         Resources  = StewardResources,
         Skill      = Skill,
         IndustryId = IndustryId,
         Speciality = Speciality
     };
 }