InitClientDefinition() public static méthode

public static InitClientDefinition ( ) : void
Résultat void
Exemple #1
0
 private void uiEventHandler(object sender, EventArgs e)
 {
     if (sender.Equals(radioConnectSPOnline))
     {
         if (!radioConnectSPOnline.Checked && WorkingDefinition.IsClientObjectModel)
         {
             Common.InitServerDefinition();
         }
         else if (radioConnectSPOnline.Checked && !WorkingDefinition.IsClientObjectModel)
         {
             Common.InitClientDefinition();
         }
     }
     setUIState();
 }
Exemple #2
0
        public frm01Connect(bool appStart)
        {
            InitializeComponent();

            base.lblTitle.Text       = "Connect";
            base.lblDescription.Text = "Connect to your SharePoint environment";

            btnBack.Enabled = false;
            btnNext.Click  += btnNext_Click;
            ucSteps1.showStep(1);
            this.Text = Common.APP_TITLE;
            DataGenerator.SessionID = "Session " + DateTime.Now.ToString("yy-MM-dd") + " " + DateTime.Now.Hour.ToString() + "-" + DateTime.Now.Minute.ToString();

            if (appStart)
            {
                if (DataGenerator.SupportsServer)
                {
                    Common.InitServerDefinition();
                }
                else if (DataGenerator.SupportsClient)
                {
                    Common.InitClientDefinition();
                }
                else
                {
                    MessageBox.Show("To use SPDG you must either run it on a >=SharePoint 2010 machine, or on a machine that has .Net 4.5 framework installed");
                    Environment.Exit(0);
                }
                if (!DataGenerator.SupportsServer)
                {
                    radioConnectSPOnPremise.Enabled = false;
                    radioConnectSPOnPremise.Checked = false;
                    radioConnectSPOnline.Checked    = true;
                }
                else if (!DataGenerator.SupportsClient)
                {
                    radioConnectSPOnline.Enabled    = false;
                    radioConnectSPOnline.Checked    = false;
                    radioConnectSPOnPremise.Checked = true;
                }
            }

            loadData();
            setUIState();
        }