Example #1
0
        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            UIDocument uidoc = commandData.Application.ActiveUIDocument;

            CusParameters  cp = new CusParameters(uidoc);
            ItemsModel     im = new ItemsModel();
            ItemController ic = new ItemController(im, cp);

            this._ic = ic;
            Thread ofthread = new Thread(openForm);

            ofthread.Start();

            return(Result.Succeeded);
        }
Example #2
0
        public CusForm(CusParameters cps)
        {
            InitializeComponent();

            this._parameterlv.View = System.Windows.Forms.View.Details;
            this._parameterlv.Columns.Add("參數名稱");
            this._parameterlv.Columns.Add("參數內容");
            _cps   = cps;
            _parms = _cps.getElementParameters();
            this._componentidlb.Text   = _cps.Id;
            this._componentnamelb.Text = _cps.Type;
            _saveNewbtn.Enabled        = false;
            _checkbtn.Enabled          = false;
            this.setListView();
        }
Example #3
0
 public ItemController(ItemsModel im, CusParameters cps)
 {
     this._im  = im;
     this._cps = cps;
     this._im.setItems(cps.getItems());
 }