コード例 #1
0
        private void btnGetSiteInfo_Click(object sender, RoutedEventArgs e)
        {
            var sUri = teSiteUri.Text;

            try
            {
                XlHlp.ScreenUpdatesOff();

                using (var ctx = VNCSP.Helper.GetClientContext(sUri))
                {
                    CreateWS_Web_Info(ctx, ccbeWebInfo.Text, true);
                }
            }
            finally
            {
                XlHlp.ScreenUpdatesOn(true);
            }
        }
コード例 #2
0
        private void btnGetSiteCollectionInfo_Click(object sender, RoutedEventArgs e)
        {
            var scUri = spSiteCollection_Picker.Uri;

            try
            {
                XlHlp.ScreenUpdatesOff();

                using (var ctx = new ClientContext(scUri))
                {
                    CreateWS_SiteCollection_Info(ctx, false);
                }
            }
            finally
            {
                XlHlp.ScreenUpdatesOn(true);
            }
        }
コード例 #3
0
        private void spSiteCollection_Picker_ControlChanged()
        {
            try
            {
                XlHlp.ScreenUpdatesOff();

                teSiteUri.Text = spSiteCollection_Picker.Uri;

                // We just picked a new site collection, perhaps update a list of (sub)sites.
                PopulateSitesPicker(spSiteCollection_Picker.Uri);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
            finally
            {
                XlHlp.ScreenUpdatesOn(true);
            }
        }