예제 #1
0
        /// <summary>
        /// Occurs when the AddOn instance is being initialized.
        /// </summary>
        /// <param name="e">The AddOn host event arguments.</param>
        protected virtual void OnIntialize(AddOnHostEventArgs e)
        {
            //Set Host
            host = e.Host;

            //Trigger
            initialize?.Invoke(this, e);
        }
예제 #2
0
        void IAddOn.Initialize(IHost host)
        {
            //Create Args
            var e = new AddOnHostEventArgs(host);

            //Initialize
            OnIntialize(e);

            //Trigger
            initialize?.Invoke(this, e);
        }
예제 #3
0
        void IAddOn.Initialize(IHost host)
        {
            //Set
            this.host = host;

            //Create Arguments
            AddOnHostEventArgs e = new AddOnHostEventArgs(host);

            //Initialize
            OnInitialize(e);

            //Invoke
            initialize?.Invoke(this, e);
        }
예제 #4
0
 /// <summary>
 /// Occurs when the AddOn instance is being initialized.
 /// </summary>
 /// <param name="e">The AddOn host event arguments.</param>
 protected virtual void OnInitialize(AddOnHostEventArgs e)
 {
 }
예제 #5
0
 /// <summary>
 /// Occurs when the AddOn instance is being initialized.
 /// </summary>
 /// <param name="e">The AddOn host event arguments.</param>
 protected virtual void OnIntialize(AddOnHostEventArgs e)
 {
     //Set Host
     host = e.Host;
 }