Example #1
0
 public virtual Task Init()
 {
     if (View == null)
     {
         View             = GetUserControl();
         View.DataContext = this;
     }
     if (SupportedButtons.Any() == false)
     {
         RegisterButtons();
     }
     return(Task.CompletedTask);
 }
Example #2
0
 protected void RegisterButton(ButtonModel paButton)
 {
     SupportedButtons.Add(paButton);
 }