Exemple #1
0
        private static List <object> CreatePanelGridParameters(IBaseListPanel listPanel)
        {
            var item = listPanel.FocusedItem;
            var key  = (item == null)
                             ? null
                             : item.Key;

            return(new List <object> {
                key, item, listPanel
            });
        }
Exemple #2
0
        public static IList <IObject> ShowForMultiSelection
            (IBaseListPanel form, Control owner, Dictionary <string, object> @params = null, int width = 0, int height = 0)
        {
            object id = null;

            form.SelectMode = SelectMode.MultiSelect;
            if (ShowModal(form as IApplicationForm, owner, ref id, null, @params, 1000, 700))
            {
                return(form.SelectedItems);
            }
            return(null);
        }