public void RaiseRequestConnectionEvent(RequestConnectionEventArgs args) { if (OnRequestConnection != null) { OnRequestConnection(this, args); } }
protected void AddAdditionalOrganization() { var args = new RequestConnectionEventArgs { ActionName = "AdditionalOrganization", Control = this }; OnConnectionRequested(this, args); }
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(); } }
private void btnSelectTarget_Click(object sender, EventArgs e) { if (OnRequestConnection != null) { var args = new RequestConnectionEventArgs { ActionName = "TargetOrganization", Control = this }; OnRequestConnection(this, args); } }
public void RaiseRequestConnectionEvent(RequestConnectionEventArgs args) { CallingControl.RaiseRequestConnectionEvent(args); }
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(); } }
protected virtual void OnConnectionRequested(object sender, RequestConnectionEventArgs e) { OnRequestConnection?.Invoke(sender, e); }
/// <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); }