Пример #1
0
        private static IEnumerable <T> Show <T>(Form owner, IFormList handler, DataSet <T> opts, bool multiSelect, IEnumerable <T> defaultSelection)
        {
            using (FrmSelectList frm = new FrmSelectList(handler, opts, multiSelect, defaultSelection, opts.Core))
            {
                if (UiControls.ShowWithDim(owner, frm) == DialogResult.OK)
                {
                    return(frm._result.Cast <T>());
                }

                return(null);
            }
        }
Пример #2
0
 public void DeepCopyIn(
     IFormList item,
     IFormListGetter rhs,
     ErrorMaskBuilder?errorMask,
     TranslationCrystal?copyMask,
     bool deepCopy)
 {
     base.DeepCopyIn(
         (IFallout4MajorRecord)item,
         (IFallout4MajorRecordGetter)rhs,
         errorMask,
         copyMask,
         deepCopy: deepCopy);
 }
Пример #3
0
        private FrmSelectList(IFormList handler, IDataSet opts, bool multiSelect, IEnumerable defaultSelection, Core core)
            : this()
        {
            this.Text = opts.Title;
            this.ctlTitleBar1.Text    = opts.Title;
            this.ctlTitleBar1.SubText = opts.SubTitle;
            this._btnEdit.Visible     = opts.ListSupportsChanges;

            this._handler              = handler;
            this._opts                 = opts;
            this._multiSelect          = multiSelect;
            this._flpSelectAll.Visible = multiSelect;

            this._handler.Initialise(this, core);

            this.RefreshList(defaultSelection);
        }
Пример #4
0
 public void RemapLinks(IFormList obj, IReadOnlyDictionary <FormKey, FormKey> mapping)
 {
     base.RemapLinks(obj, mapping);
 }