Exemple #1
0
        protected virtual void OnFurnitureLoad(FurnitureLoadEventArgs e)
        {
            EventHandler <FurnitureLoadEventArgs> handler = FurnitureLoad;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #2
0
        protected void RaiseOnFurnitureLoad(InterceptedEventArgs e)
        {
            if (FurnitureLoad != null)
            {
                var args = new FurnitureLoadEventArgs(e.Continuation, e.Step, e.Packet);
                OnFurnitureLoad(args);

                e.Cancel       = args.Cancel;
                e.WasContinued = args.WasContinued;
            }
        }