private void ListPermissionsAction()
 {
     if (SelectedList.ListName == null || SelectedList.ListName == "")
     {
         ExceptionMessage = "Please select a list";
         //StartExMessageTimer();
     }
     else
     {
         ShowListPermissionsDialog permissionsDialog = new ShowListPermissionsDialog(SelectedList.GUID, SelectedList.ListName, PeopleAsmx, CustomPermissionsAsmx, SiteUrl, _log);
         permissionsDialog.Show();
     }
 }
Esempio n. 2
0
        void permission_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            if (CurrentList != null)
                MessageDialog.ShowMessage("Please close list to perform list permissions.");
            else
            {
                ListItemControl lst = (ListItemControl)((Grid)(((StackPanel)((Image)sender).Parent).Parent)).Parent;
                String PeopleAsmx = Constants.InitParams.PeopleAsmx(this);
                String custompermissionsasmx = Constants.InitParams.CustomPermissionsAsmx(this);
                ShowListPermissionsDialog permissionsDialog = new ShowListPermissionsDialog(lst.List.Id, lst.List.ListName, PeopleAsmx, custompermissionsasmx, Constants.InitParams.ListURL(this), _sLog);
                permissionsDialog.Show();

            }
            e.Handled = true;
        }