コード例 #1
0
ファイル: FrmDataCheck.cs プロジェクト: secondii/Yutai
        public void InitCheckItem(CheckPlugin plugin)
        {
            this.checkBoxFieldFull.Enabled   = true;
            this.checkBoxFieldRepeat.Enabled = true;
            this.checkBoxHylink.Enabled      = true;

            this.checkBoxSinglePoint.Enabled = true;
            this.checkBoxSingleLine.Enabled  = true;
            this.checkBoxPointRepeat.Enabled = true;
            this.checkBoxLineRepeat.Enabled  = true;

            if (plugin.DataCheckConfig != null)
            {
                this.checkBoxMaxLength.Enabled       = true;
                this.checkBoxDepth.Enabled           = true;
                this.checkBoxMinimumSpacing.Enabled  = true;
                this.checkBoxStandardization.Enabled = true;
                this.checkBoxCoord.Enabled           = true;
                this.checkBoxElevation.Enabled       = true;
                this.checkBoxIntersect.Enabled       = true;
                this.checkBoxFeature.Enabled         = true;
            }

            this.checkBoxRelation.Enabled = true;
            this.checkBoxFlow.Enabled     = true;
        }
コード例 #2
0
ファイル: CmdDataCheck.cs プロジェクト: secondii/Yutai
 public CmdDataCheck(IAppContext context, CheckPlugin plugin)
 {
     OnCreate(context);
     _plugin   = plugin;
     _waitForm = new WaitForm();
     _waitForm.Worker.DoWork             += BackgroundWorkerOnDoWork;
     _waitForm.Worker.RunWorkerCompleted += BackgroundWorkerOnRunWorkerCompleted;
 }
コード例 #3
0
ファイル: MenuGenerator.cs プロジェクト: secondii/Yutai
        public MenuGenerator(IAppContext context, CheckPlugin plugin)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            // if (pluginManager == null) throw new ArgumentNullException("pluginManager");

            _plugin          = plugin;
            _context         = context;
            _menuManager     = _context.MainView.RibbonManager;
            _commands        = new YutaiCommands(_context, plugin);
            _commands.Plugin = plugin;
            InitMenus();
        }
コード例 #4
0
        public CheckResultDockPanelService(IAppContext context, CheckResultPresenter presenter, CheckPlugin plugin)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (presenter == null)
            {
                throw new ArgumentNullException("presenter");
            }
            if (plugin == null)
            {
                throw new ArgumentNullException("plugin");
            }

            _context   = context;
            _presenter = presenter;
            _plugin    = plugin;
        }
コード例 #5
0
ファイル: CmdDDJC.cs プロジェクト: frankerlee/Yutai
 public CmdDDJC(IAppContext context, CheckPlugin plugin)
 {
     OnCreate(context);
     _plugin = plugin;
 }
コード例 #6
0
 public YutaiCommands(IAppContext context, CheckPlugin plugin)
     : base(context, plugin.Identity)
 {
 }
コード例 #7
0
ファイル: CmdDataCheckConfig.cs プロジェクト: secondii/Yutai
 public CmdDataCheckConfig(IAppContext context, CheckPlugin plugin)
 {
     OnCreate(context);
     _plugin = plugin;
 }