public void InitializeFrame()
 {
     if (frame == null)
     {
         frame = helper.Application.CreateNestedFrame(this, TemplateContext.LookupControl);
         newObjectViewController = frame.GetController <NewObjectViewController>();
         if (newObjectViewController != null)
         {
             newObjectViewController.ObjectCreating += new EventHandler <ObjectCreatingEventArgs>(newObjectViewController_ObjectCreating);
             newObjectViewController.ObjectCreated  += new EventHandler <ObjectCreatedEventArgs>(newObjectViewController_ObjectCreated);
         }
     }
 }
Beispiel #2
0
 public void InitializeFrame()
 {
     if (_frame == null)
     {
         _frame = _helper.Application.CreateNestedFrame(this, TemplateContext.LookupControl);
         _newObjectViewController = _frame.GetController <NewObjectViewController>();
         if (_newObjectViewController != null)
         {
             _newObjectViewController.ObjectCreating += newObjectViewController_ObjectCreating;
             _newObjectViewController.ObjectCreated  += newObjectViewController_ObjectCreated;
         }
     }
 }
Beispiel #3
0
        protected void EnsureFrameObjects()
        {
            if (frame == null)
            {
                frame = helper.Application.CreateNestedFrame(this, TemplateContext.LookupControl);
                frame.SetView(helper.CreateListView(CurrentObject)); // joe 5/11/2011: MUST DO THIS
                newObjectViewController = frame.GetController <NewObjectViewController>();

                if (newObjectViewController != null)
                {
                    newObjectViewController.ObjectCreating += new EventHandler <ObjectCreatingEventArgs>(newObjectViewController_ObjectCreating);
                    newObjectViewController.ObjectCreated  += new EventHandler <ObjectCreatedEventArgs>(newObjectViewController_ObjectCreated);
                }

                newObjectWindowAction          = new PopupWindowShowAction(null, "New", PredefinedCategory.Unspecified.ToString());
                newObjectWindowAction.Execute += new PopupWindowShowActionExecuteEventHandler(newObjectWindowAction_OnExecute);
                newObjectWindowAction.CustomizePopupWindowParams += new CustomizePopupWindowParamsEventHandler(newObjectWindowAction_OnCustomizePopupWindowParams);
                newObjectWindowAction.Application = helper.Application;
            }
        }
 public void InitializeFrame() {
     if (frame == null) {
         frame = helper.Application.CreateNestedFrame(this, TemplateContext.LookupControl);
         newObjectViewController = frame.GetController<NewObjectViewController>();
         if (newObjectViewController != null) {
             newObjectViewController.ObjectCreating += newObjectViewController_ObjectCreating;
             newObjectViewController.ObjectCreated += newObjectViewController_ObjectCreated;
         }
     }
 }