public SimpleGenericListFieldItemListDialog(Type type)
        {
            InitializeComponent();
            this.SuspendLayout();
            sourceObjectType = type;
            listWindow       = (IListProcessor)AppManager.Instance.CreateNewContentInstance(typeof(IListProcessor), type,
                                                                                            new Dictionary <string, object>()
            {
                { FrwBaseViewControl.PersistStringDlgModeParameter, true }
            });

            this.Text = FrwCRUDRes.SimpleListDialog_Title;

            this.panel1.Controls.Add((Control)listWindow);
            ((Control)listWindow).Dock = DockStyle.Fill;
            listWindow.ProcessView();
            this.ResumeLayout();
        }
        public SimpleListDialog(Type type)
        {
            InitializeComponent();
            this.SuspendLayout();

            listWindow = (IListProcessor)AppManager.Instance.CreateNewContentInstance(typeof(IListProcessor), type,
                                                                                      new Dictionary <string, object>()
            {
                { FrwBaseViewControl.PersistStringDlgModeParameter, true }
            });

            this.Text = FrwCRUDRes.SimpleListDialog_Title;

            if (listWindow is IParentView)
            {
                (listWindow as IParentView).OnObjectSelectEvent += ListWindow_OnObjectSelectEvent;
            }
            this.panel1.Controls.Add((Control)listWindow);
            ((Control)listWindow).Dock = DockStyle.Fill;
            listWindow.ProcessView();
            this.ResumeLayout();
        }