private void UpdateForm(string Message) { tbRepositoryPackageURL.Text = SPSINStoreRepository.GetResolvedRepositoryURL(SPContext.Current.Web); if (!string.IsNullOrEmpty(Message)) { SPSIN_Message.Text = Message; } }
public void btnSaveClick(object sender, EventArgs e) { SPSINStoreRepository.SetRepositoryPackageURL(SPContext.Current.Web, tbRepositoryPackageURL.Text); UpdateForm("Settings saved!"); }
public void lbtnResetRepositoryPackageURL_Click(object sender, EventArgs e) { SPSINStoreRepository.ResetRepositoryPackageURL(SPContext.Current.Web); UpdateForm("Repository Pakcage URL Reset"); }