Esempio n. 1
0
 private void EditButtonShow()
 {
     LoadData();
     SelectedButton = (ButtonId == 0) ? new StreamingLiveLib.Button() : StreamingLiveLib.Button.Load(ButtonId, AppUser.Current.Site.Id);
     ButtonUrl      = SelectedButton.Url;
     ButtonText     = SelectedButton.Text;
 }
Esempio n. 2
0
 public void OnPostButtonSave()
 {
     StreamingLiveLib.Button button = (ButtonId == 0) ? new StreamingLiveLib.Button()
     {
         SiteId = AppUser.Current.Site.Id, Sort = 999
     } : StreamingLiveLib.Button.Load(ButtonId, AppUser.Current.Site.Id);
     button.Url  = ButtonUrl;
     button.Text = ButtonText;
     button.Save();
     if (ButtonId == 0)
     {
         LoadData();
         Buttons.UpdateSort();
     }
     UpdateData();
     Populate();
 }