コード例 #1
0
 public void RaiseRequestConnectionEvent(RequestConnectionEventArgs args)
 {
     if (OnRequestConnection != null)
     {
         OnRequestConnection(this, args);
     }
 }
コード例 #2
0
        protected void AddAdditionalOrganization()
        {
            var args = new RequestConnectionEventArgs {
                ActionName = "AdditionalOrganization", Control = this
            };

            OnConnectionRequested(this, args);
        }
コード例 #3
0
 private void tsbLoadEntities_Click(object sender, EventArgs e)
 {
     if (service == null)
     {
         if (OnRequestConnection != null)
         {
             var args = new RequestConnectionEventArgs
             {
                 ActionName = "Load",
                 Control = this
             };
             OnRequestConnection(this, args);
         }
         else
         {
             MessageBox.Show(this, "OnRequestConnection event not registered!", "Error", MessageBoxButtons.OK,
                             MessageBoxIcon.Error);
         }
     }
     else
     {
         LoadEntities();
     }
 }
コード例 #4
0
 private void btnSelectTarget_Click(object sender, EventArgs e)
 {
     if (OnRequestConnection != null)
     {
         var args = new RequestConnectionEventArgs { ActionName = "TargetOrganization", Control = this };
         OnRequestConnection(this, args);
     }
 }
コード例 #5
0
 public void RaiseRequestConnectionEvent(RequestConnectionEventArgs args)
 {
     CallingControl.RaiseRequestConnectionEvent(args);
 }
コード例 #6
0
 private void TsbLoadSolutionsClick(object sender, EventArgs e)
 {
     if (service == null)
     {
         if (OnRequestConnection != null)
         {
             var args = new RequestConnectionEventArgs {ActionName = "WhoAmI", Control = this, Parameter = null};
             OnRequestConnection(this, args);
         }
     }
     else
     {
         RetrieveSolutions();
     }
 }
コード例 #7
0
 protected virtual void OnConnectionRequested(object sender, RequestConnectionEventArgs e)
 {
     OnRequestConnection?.Invoke(sender, e);
 }
コード例 #8
0
 /// <summary>
 /// open the window to select a target connection
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void selectTargetButton_Click(object sender, EventArgs e)
 {
     var args = new RequestConnectionEventArgs { ActionName = "TargetOrganization", Control = this };
     RaiseRequestConnectionEvent(args);
 }