Exemplo n.º 1
0
 /// <summary>
 /// 命令注册
 /// </summary>
 /// <param name="axMx">控件</param>
 public CommandList(ref AxMxDrawX axMx)
 {
     axMx.RegistUserCustomCommand("select_layer", 1001);   //选择图层
     axMx.RegistUserCustomCommand("TK_NewObj", 1002);      //新建项目
     axMx.RegistUserCustomCommand("TK_OpenObj", 1003);     //打开项目
     axMx.RegistUserCustomCommand("TK_SaveAsObj", 10041);  //另存为
     axMx.RegistUserCustomCommand("TK_SaveObj", 1004);     //保存操作
     axMx.RegistUserCustomCommand("TK_OutObj", 1005);      //退出操作
     axMx.RegistUserCustomCommand("TK_PLSB", 1006);        //梁批量识别
     axMx.RegistUserCustomCommand("TK_PLSB_select", 1007); //梁批量识别-选择
     axMx.RegistUserCustomCommand("MyTest", 11);           //测试命令
 }
Exemplo n.º 2
0
        /// <summary>
        /// 命令注册
        /// </summary>
        /// <param name="axMx">控件</param>
        public CommandList(ref AxMxDrawX axMx)
        {
            axMx.RegistUserCustomCommand("select_layer", 1001);   //选择图层
            axMx.RegistUserCustomCommand("TK_NewObj", 1002);      //新建项目
            axMx.RegistUserCustomCommand("TK_OpenObj", 1003);     //打开项目
            axMx.RegistUserCustomCommand("TK_SaveAsObj", 10041);  //另存为
            axMx.RegistUserCustomCommand("TK_SaveObj", 1004);     //保存操作
            axMx.RegistUserCustomCommand("TK_OutObj", 1005);      //退出操作
            axMx.RegistUserCustomCommand("TK_PLSB", 1006);        //梁批量识别
            axMx.RegistUserCustomCommand("TK_PLSB_select", 1007); //梁批量识别-选择
            axMx.RegistUserCustomCommand("TK_DDBJ", 1008);        //单段编辑
            axMx.RegistUserCustomCommand("TK_DLSB", 1009);        //单梁识别
            axMx.RegistUserCustomCommand("TK_DDSB", 1010);        //单段识别
            axMx.RegistUserCustomCommand("TK_KZDJ", 1011);        //抗震等级
            axMx.RegistUserCustomCommand("TK_HNTDJ", 1012);       //混凝土等级
            axMx.RegistUserCustomCommand("TK_SWCK", 1013);        //三维窗口
            axMx.RegistUserCustomCommand("TK_PSHOW", 1014);       //平显


            axMx.RegistUserCustomCommand("Delete_Layer", 12); //删除图层
            axMx.RegistUserCustomCommand("MyTest", 11);       //测试命令
        }
Exemplo n.º 3
0
 public MyToolBar(ref Project_Tree _Tree, ref AxMxDrawX axMxDrawX)
 {
     this._Tree      = _Tree;
     this.axMxDrawX1 = axMxDrawX;
 }
Exemplo n.º 4
0
        public Document()
        {
            InitializeComponent();
            if (logic == null)
                logic = new MkyLogic();

            //岩层参数录入初始化
            LayerBaseParams dibiao = new LayerBaseParams(this);
            dibiao.yanXing = YanXingOpt[0];
            layers.Add(dibiao);
            caiDongComBox.SelectedIndex = 0;

            //向导式录入初始化
            editLayer = new LayerBaseParams(this);
            guideBind(editLayer);

            //位移计算初始化
            JQDestCombo.Text = JQDestOpt[0];
            LCDestCombo.Text = LCDestOpt[0];

            //水泥环增益初始化
            editZengYi = new ZengYiParams(this);

            //人工设计
            manuDesignParams = new ManuDesignParams(this);
            manuDesignParams.JieGou = JieGouOpt[1];

            //井型自动设计初始化
            AutoTgxh1 = TggjOpt[0];
            AutoTgxh2 = TggjOpt[0];
            AutoTgxh3 = TggjOpt[0];
            AutoWjfs3 = WjfsOpt[0];

            //cad初始化
            cadViewer = new AxMxDrawX();
            cadViewer.BeginInit();
            wfHost.Child = cadViewer;
            Thread thread = new Thread(new ThreadStart(closeFuckDlg));
            thread.Start();
            cadViewer.EndInit();

            cadViewer2 = new AxMxDrawX();
            cadViewer2.BeginInit();
            wfHost2.Child = cadViewer2;
            Thread thread2 = new Thread(new ThreadStart(closeFuckDlg));
            thread2.Start();
            cadViewer2.EndInit();

            //自动更新层号 层号不保存在集合中
            paramGrid.LoadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_LoadingRow);
            paramGrid.UnloadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_UnloadingRow);
            keyLayerDataGrid.LoadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_LoadingRow);
            keyLayerDataGrid.UnloadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_UnloadingRow);
            cutOffsetDataGrid.LoadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_LoadingRow);
            cutOffsetDataGrid.UnloadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_UnloadingRow);
            lcOffsetDataGrid.LoadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_LoadingRow);
            lcOffsetDataGrid.UnloadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_UnloadingRow);
            taoGuanDataGrid.LoadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_LoadingRow);
            taoGuanDataGrid.UnloadingRow += new EventHandler<DataGridRowEventArgs>(dataGrid_UnloadingRow);

            //表格的数据绑定
            paramGrid.DataContext = layers;
            keyLayerDataGrid.DataContext = keyLayers;
            yancengListBox.ItemsSource = layers;
            cutOffsetDataGrid.ItemsSource = layers;
            lcOffsetDataGrid.ItemsSource = keyLayers;
            taoGuanDataGrid.ItemsSource = keyLayers;
            zengYiDataGrid.ItemsSource = zengYis;
            zengYiGrid.DataContext = editZengYi;
            manuDesignGrid.DataContext = manuDesignParams;
            autoDesignGrid.DataContext = this;

            //关键层计算相关其他参数绑定
            meiCengQingJIaoTb.DataContext = this;
            fuYanXCLTb.DataContext = this;
            caiGaoTb.DataContext = this;
            suiZhangXSTb.DataContext = this;

            meiCengHouDuTb.DataContext = this;
            xiuZhengXishuTb.DataContext = this;
            hcqZXcdTb.DataContext = this;
            hcqQXcdTb.DataContext = this;
            gZMTJSDTb.DataContext = this;
            jswzjlTb.DataContext = this;

            //initialData();
        }