예제 #1
0
        /// <summary> 将工程数量表的工作簿中的多个工程数量表拆分为单独的工作簿 </summary>
        private void btn_SepFiles_Click(object sender, RibbonControlEventArgs e)
        {
            Application app = Globals.ThisAddIn.Application;
            //
            var sf = new SepFilesHandler();

            AddinManagerDebuger.ExecuteInRibbon(sf.SepFiles
                                                , app, ref _errorMessage, ref _errorRange);
        }
예제 #2
0
        private void button_ContentRowHeight_Click(object sender, RibbonControlEventArgs e)
        {
            Application app = Globals.ThisAddIn.Application;
            //
            var ps = new PrintingFormat.RowHeightSetter();

            AddinManagerDebuger.ExecuteInRibbon(ps.SetContentRowHeight
                                                , app, ref _errorMessage, ref _errorRange);
        }
예제 #3
0
        /// <summary> 提取C++文档信息 </summary>
        private void btn_ExtractCppDoc_Click(object sender, RibbonControlEventArgs e)
        {
            Application app = Globals.ThisAddIn.Application;
            //

            var ps = new CppDoc.CppDocExtracter();

            AddinManagerDebuger.ExecuteInRibbon(ps.ExtractCppDoc
                                                , app, ref _errorMessage, ref _errorRange);
        }
예제 #4
0
        private void btn_UnLockSheet_Click(object sender, RibbonControlEventArgs e)
        {
            Application app = Globals.ThisAddIn.Application;
            var         operateOnAllSheet = GetBool(EditBox_p3.Text);

            app.ScreenUpdating = false;
            //
            var sf = new SheetLocker()
            {
                OperateOnAllSheets = operateOnAllSheet
            };

            AddinManagerDebuger.ExecuteInRibbon(sf.UnLockSheet
                                                , app, ref _errorMessage, ref _errorRange);
        }