Beispiel #1
0
 private void SigViewBtn_Click(object sender, RibbonControlEventArgs e)
 {
     sigPane                  = new SigTaskPane();
     CustomxlTaskPane         = Globals.ThisAddIn.CustomTaskPanes.Add(sigPane, "Signature Viewer", Globals.ThisAddIn.Application.ActiveWindow);
     CustomxlTaskPane.Visible = true;
     CustomxlTaskPane.Width   = 350;
 }
Beispiel #2
0
        private void ProcessCsvOutput()
        {
            DocumentProperties prps;

            prps = (DocumentProperties)Globals.ThisAddIn.Application.ActiveWorkbook.CustomDocumentProperties;
            CustomTaskPane ctp = Globals.ThisAddIn.CustomTaskPanes.Where(x => x.Control.Name == prps["customTaskPaneName"].Value.ToString()).FirstOrDefault();

            //CustomTaskPane ctp = Globals.ThisAddIn.CustomTaskPanes.FirstOrDefault();
            CheckBox checkBoxCsvOutput = ctp.Control.Controls["checkBoxCsvOutput"] as CheckBox;

            if (csvList.Count > 0 && checkBoxCsvOutput.Checked)
            {
                foreach (string csvFile in csvList)
                {
                    if (File.Exists(csvFile))
                    {
                        ImportCSV(csvFile);
                    }
                }
            }
            else
            {
                return;
            }
        }
Beispiel #3
0
        /// <summary>
        /// 添加一个自定义面面板
        /// </summary>
        /// <param name="key">Key</param>
        /// <param name="title">标题</param>
        /// <param name="ctrl">内部控件</param>
        /// <param name="visible">是否可见</param>
        /// <param name="visibleChanged">可见性委托</param>
        /// <returns></returns>
        public static Microsoft.Office.Tools.CustomTaskPane Add(string key, string title, System.Windows.Forms.UserControl ctrl, bool visible, EventHandler visibleChanged)
        {
            if (!Exists(key))
            {
                Microsoft.Office.Tools.CustomTaskPane pan = Globals.ThisAddIn.CustomTaskPanes.Add(ctrl, title);
                pan.DockPosition         = Microsoft.Office.Core.MsoCTPDockPosition.msoCTPDockPositionRight;
                pan.DockPositionRestrict = Microsoft.Office.Core.MsoCTPDockPositionRestrict.msoCTPDockPositionRestrictNoChange;

                if (visibleChanged != null)
                {
                    pan.VisibleChanged += visibleChanged;
                }


                pans.Add(key, pan);

                pan.Width   = 400;
                pan.Visible = visible;
                return(pan);
            }
            else
            {
                return(pans[key]);
            }
        }
Beispiel #4
0
 private IconsPane(Microsoft.Office.Tools.CustomTaskPane _tPane)
 {
     InitializeComponent();
     StringSetter.setPane(this);
     _inst = this;
     setSysPane();
 }
Beispiel #5
0
        private void ProcessAllWordFiles(bool deploy)
        {
            DocumentProperties prps;

            prps = (DocumentProperties)Globals.ThisAddIn.Application.ActiveWorkbook.CustomDocumentProperties;
            CustomTaskPane ctp = Globals.ThisAddIn.CustomTaskPanes.Where(x => x.Control.Name == prps["customTaskPaneName"].Value.ToString()).FirstOrDefault();
            //CustomTaskPane ctp = Globals.ThisAddIn.CustomTaskPanes.FirstOrDefault();
            TextBox textBoxFlowFile = ctp.Control.Controls["textBoxFlowFile"] as TextBox;

            int    index = 0;
            string mainFlowWordCopyFilePath = GetWordCopyFilePath(index);

            CreateSubFlowWordCopy(textBoxFlowFile.Text, mainFlowWordCopyFilePath);
            string mainFlowFilePath = GetMainFlowFilePath();

            ProcessSubFlows(mainFlowFilePath, mainFlowWordCopyFilePath, deploy);
            string imageFolderPath = GetImageFolderPath(deploy);

            ProcessImages(mainFlowWordCopyFilePath, imageFolderPath);
            string tagFilePath = GetTagFilePath(index, deploy);

            GenerateTagFile(tagFilePath, mainFlowWordCopyFilePath);
            while (subFlowCount > 0)
            {
                index++;
                string subFlowWordCopyFilePath = GetWordCopyFilePath(index);
                CreateSubFlowWordCopy(subFlowFilePaths[index - 1], subFlowWordCopyFilePath);
                ProcessSubFlows(subFlowFilePaths[index - 1], subFlowWordCopyFilePath, deploy);
                ProcessImages(subFlowWordCopyFilePath, imageFolderPath);
                string subFlowTagFilePath = GetTagFilePath(index, deploy);
                GenerateTagFile(subFlowTagFilePath, subFlowWordCopyFilePath);
                subFlowCount--;
            }
        }
Beispiel #6
0
        private string GetSavedFolderPath()
        {
            DocumentProperties prps;

            prps = (DocumentProperties)Globals.ThisAddIn.Application.ActiveWorkbook.CustomDocumentProperties;
            CustomTaskPane ctp = Globals.ThisAddIn.CustomTaskPanes.Where(x => x.Control.Name == prps["customTaskPaneName"].Value.ToString()).FirstOrDefault();

            //CustomTaskPane ctp = Globals.ThisAddIn.CustomTaskPanes.FirstOrDefault();
            TextBox textBoxFlowFile = ctp.Control.Controls["textBoxFlowFile"] as TextBox;
            string  fileLoc         = textBoxFlowFile.Text;
            string  folderPath      = "";

            if (FlowFileType(fileLoc) == ".docx")
            {
                folderPath = fileLoc.Substring(0, fileLoc.Length - 5) + "\\";
                Directory.CreateDirectory(folderPath);
            }
            else
            {
                string[] arr         = fileLoc.Split('\\');
                int      lengthToCut = arr[arr.Length - 1].Length;
                folderPath = fileLoc.Substring(0, fileLoc.Length - lengthToCut);
            }

            return(folderPath);
        }
Beispiel #7
0
        private void LaunchClientDoc(string docType)
        {
            try
            {
                ClientForm myForm = new ClientForm();
                myForm.ShowDialog();
                XLMain.Client selectedClient = myForm.selectedClient;
                if (selectedClient != null)
                {
                    string crmId = selectedClient.crmID;
                    XLDocument.openTemplate(docType);
                    XLDocument.UpdateParameter("CRMid", crmId);
                    XLDocument.UpdateParameter("DocType", docType);

                    //this appears to work in 3.5 notwithstanding the reference to Globals
                    xlTaskPane1              = new XLTaskPane();
                    CustomxlTaskPane         = Globals.ThisAddIn.CustomTaskPanes.Add(xlTaskPane1, "XLant Document Handler", Globals.ThisAddIn.Application.ActiveWindow);
                    CustomxlTaskPane.Visible = true;
                    CustomxlTaskPane.Width   = 350;
                }
            }
            catch (Exception e)
            {
                MessageBox.Show("Unable to launch document");
                XLtools.LogException("LaunchClientDoc", docType + " - " + e.ToString());
            }
        }
Beispiel #8
0
        private void toggleButton1_Click(object sender, RibbonControlEventArgs e)
        {
            try
            {
                var currentCursor = Cursor.Current;
                Cursor.Current = Cursors.WaitCursor;
                Application.DoEvents();
                if (this.monitorPane == null)
                {
                    this.monitorPane = ThisAddIn.thisAddIn.CustomTaskPanes.Add(new AttachmentUserControl(), "Вложения");
                    this.monitorPane.VisibleChanged += (s, ea) =>
                    {
                        if (this.thisRibbon != null)
                        {
                            this.thisRibbon.Invalidate();
                        }
                    };

                    this.monitorPane.DockPosition = MsoCTPDockPosition.msoCTPDockPositionLeft;
                    this.monitorPane.Width        = 370;
                }

                this.monitorPane.Visible = !this.monitorPane.Visible; // Visiblethis.MonitorToggleButton.Checked;
                Cursor.Current           = currentCursor;
            }
            catch (Exception ex)
            {
                var message = string.Format("Ошибка запуска: {0}", ex.Message);
                MessageBox.Show(message, @"Ошибка!", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
 {
     myUserControl          = new FindPanelPresenter();
     myCustomTaskPane       = Globals.ThisAddIn.CustomTaskPanes.Add(myUserControl, "Find and Replace");
     myCustomTaskPane.Width = 320;
     Globals.ThisAddIn.Application.DocumentChange += Application_DocumentChange;
 }
        private void RibbonIFS_Load(object sender, RibbonUIEventArgs e)
        {
            try
            {
                myJiraLync = new JiraLync();

                myCustomTaskPane = Globals.ThisAddIn.CustomTaskPanes.Add(new DefaultValueManager(), "JIRA Tools Default Values");
                myCustomTaskPane.DockPositionRestrict = Microsoft.Office.Core.MsoCTPDockPositionRestrict.msoCTPDockPositionRestrictNoHorizontal;
            }
            catch (Exception)
            {
            }

            try
            {
                mySave = new FormSave();
                if (myJiraLync != null)
                {
                    mySave.MyJiraLync = this.myJiraLync;
                }

                editBoxServerURL.Text = Properties.Settings.Default.JiraServer;
                editBoxReporter.Text  = Properties.Settings.Default.UserName;
                editBoxPassword.Text  = Properties.Settings.Default.Password;

                editBoxProjectId.Text    = Properties.Settings.Default.JiraProjectID;
                editBoxTeam.Text         = Properties.Settings.Default.Component_Team;
                editBoxFixIteration.Text = Properties.Settings.Default.FixVersion;
                editBoxAssignee.Text     = Properties.Settings.Default.Assignee;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Loading Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Beispiel #11
0
        public void ShowPanel()
        {
            UserControlExcelAddIn panelObject = new UserControlExcelAddIn();

            customPanel         = this.CustomTaskPanes.Add(panelObject, "My Panel");
            customPanel.Width   = panelObject.Width;
            customPanel.Visible = true;
        }
Beispiel #12
0
        private void button1_Click(object sender, RibbonControlEventArgs e)
        {
            UserControlCTP uc  = new UserControlCTP();
            CustomTaskPane ctp = Globals.ThisAddIn.CustomTaskPanes.Add(uc, "Hello");

            ctp.DockPosition = MsoCTPDockPosition.msoCTPDockPositionBottom;
            ctp.Visible      = true;
        }
Beispiel #13
0
        public void SetObjectConnection(ILController pController)
        {
            _model._LoginController = pController;

            _coperations      = new COperations(_operations, _model);
            _taskpane         = Globals.ThisAddIn.CustomTaskPanes.Add(_operations, "DeXrm Operation");
            _taskpane.Visible = true;
        }
Beispiel #14
0
 private void ThisAddIn_Startup(object sender, System.EventArgs e)
 {
     //event Microsoft.Office.Tools.Word.SelectionEventHandler SelectionChange;
     myUserControl            = new CustomTaskPanel.ScriptToolsPane();
     myCustomTaskPane         = Globals.ThisAddIn.CustomTaskPanes.Add(myUserControl, "Script Tools");
     myCustomTaskPane.Visible = true;
     // System.Windows.Forms.MessageBox.Show("Here in Startup");
 }
 internal CustomTaskPane FindOrCreateCustomTaskPane(string name)
 {
     ctp = Globals.ThisAddIn.CustomTaskPanes.Where(c => c.Title == name).FirstOrDefault();
     if (ctp == null)
     {
         ctp = Globals.ThisAddIn.AddWpfContainerCustomTaskPane(name);
     }
     return(ctp);
 }
Beispiel #16
0
    private void ThisAddIn_Startup(object sender, System.EventArgs e)
    {
        this.cbGetMessage = new HookProc(this.MyGetMessageCb);
        SetWindowsHookEx(HookType.WH_GETMESSAGE, this.cbGetMessage, IntPtr.Zero, (uint)AppDomain.GetCurrentThreadId());

        myUserControl1           = new UserControl1();
        myCustomTaskPane         = this.CustomTaskPanes.Add(myUserControl1, "My Task Pane");
        myCustomTaskPane.Visible = true;
    }
Beispiel #17
0
        public void closePane()
        {
            //close pane and remove from memory
            kestrelTaskPane.Visible = false;
            //ControlVisitor visitor = ((Controls.WizardControl)randomForestTaskPane.Control).getControlVisitor();
            Globals.ThisAddIn.CustomTaskPanes.Remove(kestrelTaskPane);

            kestrelTaskPane = null;
        }
 public WindowContext()
 {
     this.listControl              = new View.ListPaneControl();
     this.listPane                 = App.TaskPanes.Add(this.listControl, Properties.Resources.ListPane_Title);
     this.listPane.DockPosition    = Microsoft.Office.Core.MsoCTPDockPosition.msoCTPDockPositionLeft;
     this.listPane.Width           = App.Context.Settings.ListPaneWidth;
     this.listPane.VisibleChanged += new EventHandler(this.listPane_VisibleChanged);
     this.listPane.Visible         = App.Context.Settings.ListPaneVisible;
     this.listControl.Resize      += new EventHandler(this.listControl_Resize);
 }
Beispiel #19
0
 public static void OpenTaskPane()
 {
     if (TaskPane == null)
     {
         CustomTaskPane customTaskPane = new CustomTaskPane();
         TaskPane       = Globals.ThisAddIn.CustomTaskPanes.Add(customTaskPane, "WebView2 Task Pane");
         TaskPane.Width = 400;
     }
     TaskPane.Visible = true;
 }
 internal CustomTaskPane AddWpfContainerCustomTaskPane(string name)
 {
     if (ctp == null)
     {
         var wpfCont = new WpfContainer();
         ctp = this.CustomTaskPanes.Add(wpfCont, name);
     }
     ctp.Visible = true;
     return(ctp);
 }
 private void ScriptTools2_Click(object sender, RibbonControlEventArgs e)
 {
     if (Globals.ThisAddIn.CustomTaskPanes.Count() < 1)
     {
         CustomTaskPanel.ScriptToolsPane myUserControl = new CustomTaskPanel.ScriptToolsPane();
         myCustomTaskPane         = Globals.ThisAddIn.CustomTaskPanes.Add(myUserControl, "Script Tools");
         myCustomTaskPane.Visible = true;
         myUserControl.Visible    = true;
         // Globals.ThisAddIn.CustomTaskPanes.Remove(myCustomTaskPane);
     }
 }
 private void ArticleBrowserAddIn_Startup(object sender, EventArgs e)
 {
     // Load the WPF ControlHost to be the design surface for WPF UI
     _host = new ControlHost();
     _host.Form1_Load(this, EventArgs.Empty);
     // Add the name of the plugin
     _myTaskPane         = CustomTaskPanes.Add(_host, "ArticleBrowser");
     _myTaskPane.Visible = true;
     // Bring the control to front, so drag n drop element work
     _myTaskPane.Control.BringToFront();
 }
Beispiel #23
0
        public void SyncPaneWPF_Loaded(object sender, RoutedEventArgs e)
        {
            Microsoft.Office.Tools.CustomTaskPane syncLabPane = this.GetAddIn().GetActivePane(typeof(SyncPane));
            if (syncLabPane == null || !(syncLabPane.Control is SyncPane))
            {
                MessageBox.Show(TextCollection.SyncLabText.ErrorSyncPaneNotOpened);
                return;
            }
            SyncPane syncLab = syncLabPane.Control as SyncPane;

            syncLab.HandleDestroyed += SyncPane_Closing;
        }
Beispiel #24
0
        private void AddTaskPane()
        {
            if (CurrentTaskPane != null)
            {
                return;
            }

            CurrentTaskPane = Globals.ThisAddIn.CustomTaskPanes.Add(new TaskPaneView(),
                                                                    ConstantControlNames.TaskPaneTitle);
            CurrentTaskPane.DockPosition = MsoCTPDockPosition.msoCTPDockPositionRight;
            CurrentTaskPane.Width        = TaskPaneWidth;
        }
        public void createListPane()
        {
            listPane = new ListPane();

            //If a taskpane is already being displayed, remove it.
            if ((Globals.ThisAddIn.CustomTaskPanes.Count > 0))
            {
                Globals.ThisAddIn.CustomTaskPanes.Remove(customTaskPane);
            }

            customTaskPane = Globals.ThisAddIn.CustomTaskPanes.Add(listPane, "Cross Reference Plus");
        }
Beispiel #26
0
 private void CustomTaskPaneVisible(Microsoft.Office.Tools.CustomTaskPane CustomTaskPane)
 {
     if (CustomTaskPane.Visible == true)
     {
         CustomTaskPane.Visible = false;
         CustomTaskPane         = null;
     }
     else
     {
         CustomTaskPane.Visible = true;
     }
 }
Beispiel #27
0
        public void createTaskPane()
        {
            resultpane = new ResultsTaskPane(this);

            //If a taskpane is already being displayed, remove it.
            if ((Globals.ThisAddIn.CustomTaskPanes.Count > 0))
            {
                Globals.ThisAddIn.CustomTaskPanes.Remove(taskpane);
            }

            taskpane         = Globals.ThisAddIn.CustomTaskPanes.Add(resultpane, "Frequency Analyzer Results");
            taskpane.Visible = true;
        }
Beispiel #28
0
        private string GetMainFlowFilePath()
        {
            DocumentProperties prps;

            prps = (DocumentProperties)Globals.ThisAddIn.Application.ActiveWorkbook.CustomDocumentProperties;
            CustomTaskPane ctp = Globals.ThisAddIn.CustomTaskPanes.Where(x => x.Control.Name == prps["customTaskPaneName"].Value.ToString()).FirstOrDefault();

            // CustomTaskPane ctp = Globals.ThisAddIn.CustomTaskPanes.FirstOrDefault();
            TextBox textBoxFlowFile = ctp.Control.Controls["textBoxFlowFile"] as TextBox;
            string  flowFilePath    = textBoxFlowFile.Text;

            return(flowFilePath);
        }
        /// <summary>
        /// This method handles the loaded ColorsLabPane.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ColorsLabPaneWPF_Loaded(object sender, RoutedEventArgs e)
        {
            Microsoft.Office.Tools.CustomTaskPane colorsLabPane = this.GetAddIn().GetActivePane(typeof(ColorsLabPane));
            if (colorsLabPane == null || !(colorsLabPane.Control is ColorsLabPane))
            {
                MessageBox.Show("Error: ColorsLabPane not opened.");
                return;
            }
            ColorsLabPane colorsLab = colorsLabPane.Control as ColorsLabPane;

            // Add handler for closing of ColorsLab
            colorsLab.HandleDestroyed += ColorsLab_Closing;
        }
        public void createTaskPane()
        {
            resultpane = new ResultsTaskPane(this);

            //If a taskpane is already being displayed, remove it.
            if ((Globals.ThisAddIn.CustomTaskPanes.Count > 0))
            {
                Globals.ThisAddIn.CustomTaskPanes.Remove(taskpane);
            }

            taskpane = Globals.ThisAddIn.CustomTaskPanes.Add(resultpane, "Frequency Analyzer Results");
            taskpane.Visible = true;
        }
Beispiel #31
0
 private void buttonAddressCrawler_Click(object sender, RibbonControlEventArgs e)
 {
     if (Globals.Ribbons.Ribbon.labelUserName.Label == "<未登录>")
     {
         MessageBox.Show("未登录!");
     }
     else
     {
         if (ctpAddressCrawler == null)
         {
             ctpAddressCrawler = Globals.ThisAddIn.CustomTaskPanes.Add(new ctpAddressCrawler(), "起始地址");
         }
         CustomTaskPaneVisible(ctpAddressCrawler);
     }
 }
Beispiel #32
0
        private string ProcessObjRepo(bool deploy)
        {
            DocumentProperties prps;

            prps = (DocumentProperties)Globals.ThisAddIn.Application.ActiveWorkbook.CustomDocumentProperties;
            CustomTaskPane ctp = Globals.ThisAddIn.CustomTaskPanes.Where(x => x.Control.Name == prps["customTaskPaneName"].Value.ToString()).FirstOrDefault();
            //CustomTaskPane ctp = Globals.ThisAddIn.CustomTaskPanes.FirstOrDefault();
            ComboBox comboBoxObjRepo = ctp.Control.Controls["comboBoxObjectRepository"] as ComboBox;
            string   csvFilePath     = "";
            string   objRepoSheet    = comboBoxObjRepo.Text;

            csvFilePath = GetWorkingFolderPath(deploy) + "tagui_local.csv";
            GenerateObjRepoCsvFile(csvFilePath, objRepoSheet);
            return(csvFilePath);
        }
Beispiel #33
0
 /// <summary>
 /// Changes the Visibility of the scenario detail pane
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="eventArgs"></param>
 /// <param name="scenarioDetailPane"></param>
 private void ChangeVisibility(object sender, EventArgs eventArgs, CustomTaskPane scenarioDetailPane)
 {
     scenarioDetailPane.Control.Visible = scenarioDetailPane.Visible;
 }
Beispiel #34
0
        private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            this._conflicts = new Dictionary<string, List<List<OxmlToken>>>();

            this.taskPaneControl = new TaskPaneControl();
            this.taskPaneValue = this.CustomTaskPanes.Add(this.taskPaneControl, "Eagle");
            this.taskPaneControl.labelMatchCount.Text = "";
            this.taskPaneValue.VisibleChanged += new EventHandler(this.taskPaneValue_VisibleChanged);

            _listView = (ListView)TaskPane.Control.Controls.Find("listView1", true)[0];
            ListViewSelectedIndexChangedHandlerOn();

            this.backgroundWorker = new BackgroundWorker();
            this.backgroundWorker.WorkerSupportsCancellation = true;
            this.backgroundWorker.WorkerReportsProgress = true;
            this.backgroundWorker.DoWork += new DoWorkEventHandler(this.backgroundWorker_DoWork);
            this.backgroundWorker.ProgressChanged += new ProgressChangedEventHandler(this.backgroundWorker_ProgressChanged);
            this.backgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this.backgroundWorker_RunWorkerCompleted);

            // Load stemming settings
            Globals.Ribbons.Ribbon1.dropDownLanguage.SelectedItemIndex =
                (int) Properties.Settings.Default.StemmingLanguage;
            Nlp.Stemming.Method = (Nlp.Stemming.Methods)Properties.Settings.Default.StemmingMethod;
            Nlp.Stemming.Language = (Nlp.Stemming.Languages)Properties.Settings.Default.StemmingLanguage;

            // Load language settings
            _language = (LanguageCode)Properties.Settings.Default.StemmingLanguage;

            // Load custom lists to profile dropdown
            if (Properties.Settings.Default.CustomLists != null)
            {
                foreach (var customList in Properties.Settings.Default.CustomLists)
                {
                    var item = Globals.Factory.GetRibbonFactory().CreateRibbonDropDownItem();
                    item.Label = customList.Split(';')[0];
                    Globals.Ribbons.Ribbon1.dropDownCustomList.Items.Add(item);
                }
            }
        }
Beispiel #35
0
        private void btnVerifyMonsters_Click(object sender, RibbonControlEventArgs e)
        {
            List<MonsterInfo> monsterInfo;
            Dictionary<int, string> spriteNames;
            string stageName;

            Globals.IG_PlanAddIn.InitiateMonsterInfo();

            try
            {
                Globals.IG_PlanAddIn.Application.ScreenUpdating = false;
                Globals.IG_PlanAddIn.Application.Calculation = Microsoft.Office.Interop.Excel.XlCalculation.xlCalculationManual;

                //Stopwatch sw = new Stopwatch();
                //sw.Start();

                // 스테이지 인덱스 불러오기
                stageName = Globals.IG_PlanAddIn.GetStageName();

                // 몬스터 스프라이트 불러오기
                spriteNames = Globals.IG_PlanAddIn.GetMonsterSprite();

                // 몬스터 데이터 불러오기
                monsterInfo = Globals.IG_PlanAddIn.GetMonsterInfos(stageName, spriteNames);

                // 밸런스문서에서 처리함
                // 몬스터데이터 표에 정보 기입하기
                //cnt = Globals.IG_PlanAddIn.RefreshMonsterInfoTable(monsterInfo, stageName);

                // 스테이지노트의 Spawn 필드를 검색하여 몬스터타입별로 색깔을 새로 지정함
                Globals.IG_PlanAddIn.RefreshMonsterColor(monsterInfo);

                // TASK PANE 테스트
                if (monsterInfoTask == null || monsterInfoTask.StageName != stageName)
                {
                    monsterInfoTask = new MonsterInfoTask(stageName);
                    monsterInfoTaskPane = Globals.IG_PlanAddIn.CustomTaskPanes.Add(monsterInfoTask, "몬스터정보");
                }
                monsterInfoTask.MonsterInfoRefresh(monsterInfo, stageName);

                //sw.Stop();

                // TASK PANE 테스트
                // System.Windows.Forms.MessageBox.Show("몬스터 정보 불러오기 완료: " + cnt + "마리(수행시간: " + sw.ElapsedMilliseconds.ToString() + "msec)");

                // TASK PANE 테스트
                monsterInfoTaskPane.Width = monsterInfoTask.monsterDataGridView.Width;
                //monsterInfoTaskPane.Height = monsterInfoTask.monsterDataGridView.Height;
                monsterInfoTaskPane.Visible = true;

            }

            // 파일 패스가 없거나 잘못 되었을 때, 새로운 정보불러오기
            catch (IOException)
            {
                if (!Globals.IG_PlanAddIn.mInfoPath.monsterTable)
                    MessageBox.Show("몬스터 테이블을 찾을 수 없습니다.");
                else if (!Globals.IG_PlanAddIn.mInfoPath.resourcePathTable)
                    MessageBox.Show("리소스패스 테이블을 찾을 수 없습니다.");
                else if (!Globals.IG_PlanAddIn.mInfoPath.stageTable)
                    MessageBox.Show("스테이지 테이블을 찾을 수 없습니다.");
                else if (!Globals.IG_PlanAddIn.mInfoPath.monsterSprite)
                    MessageBox.Show("몬스터 스프라이트가 저장된 폴더를 찾을 수 없습니다.");
            }
            catch (Exception except)
            {
                MessageBox.Show(except.Message, "몬스터 정보 오류", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            finally
            {
                Properties.Settings.Default.Save();
                Globals.IG_PlanAddIn.Application.Calculation = Microsoft.Office.Interop.Excel.XlCalculation.xlCalculationAutomatic;
                Globals.IG_PlanAddIn.Application.ScreenUpdating = true;
            }
        }
 public void initTaskPane(Word.Document document)
 {
     TaskPane = Globals.ThisAddIn.CustomTaskPanes.Add(
     //                new Controls.LogicTaskPaneUserControl(model, Globals.ThisAddIn.Application.ActiveDocument ),
         new Controls.LogicTaskPaneUserControl(model, document),
         "FabDocx Logical Structure");
     TaskPane.Width = 420;
 }