protected virtual void OnInitModel(InitModelEventArgs args)
 {
     if (InitModel != null)
     {
         InitModel(this, args);
     }
 }
        private void RaiseInitModelObject <T>(T parentModel, ref T refmodel, int index) where T : class
        {
            InitModelEventArgs args = InitModelEventArgs.CreateForModelObject(parentModel, refmodel, index);

            OnInitModel(args);
            refmodel = args.GetModelObject <T>();
        }
Beispiel #3
0
        //---------------------------------------------------------------------------

        private void vtItemsInitModel(object sender, InitModelEventArgs e)
        {
            e.InitModelValue((ref SItemLink link) =>
            {
                link.Item = arSearchItems[e.Index];
            });
        }
 private void RaiseInitModelValue <T>(T?parentModel, ValueRef <T> refmodel, int index) where T : struct
 {
     OnInitModel(InitModelEventArgs.CreateForModelValue(parentModel, refmodel, index));
 }