From da8f9e40a98a3a03467cc8e161bf1c554efa13da Mon Sep 17 00:00:00 2001 From: John Date: Fri, 8 Jan 2010 17:30:26 +0000 Subject: [PATCH] Hooks for Find/Replace --- PROMS/VEPROMS User Interface/frmVEPROMS.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PROMS/VEPROMS User Interface/frmVEPROMS.cs b/PROMS/VEPROMS User Interface/frmVEPROMS.cs index bcc5ae62..2afb3de2 100644 --- a/PROMS/VEPROMS User Interface/frmVEPROMS.cs +++ b/PROMS/VEPROMS User Interface/frmVEPROMS.cs @@ -33,6 +33,8 @@ namespace VEPROMS Color _CommentTitleBckColor; DocVersionInfo _SelectedDVI = null; StepTabPanel _SelectedStepTabPanel=null; + public FindReplace dlgFindReplace = null; + public StepTabPanel SelectedStepTabPanel { get @@ -131,6 +133,7 @@ namespace VEPROMS infoPanel.Expanded = false; toolsPanel.Expanded = false; ribbonControl1.ExpandedChanged +=new EventHandler(ribbonControl1_ExpandedChanged); + dlgFindReplace = new FindReplace(); } bool tv_InsertItemInfo(object sender, vlnTreeItemInfoInsertEventArgs args) @@ -810,6 +813,11 @@ namespace VEPROMS infoTabs.SelectedTab = infotabTags; displayTags.HighlightChangeStep(); } + else if (args.PanelTabName == "FndRpl") + { + dlgFindReplace.InApproved = (_SelectedDVI != null && _SelectedDVI.VersionType == 127); + dlgFindReplace.Visible = true; + } } private void tc_StepPanelModeChange(object sender, StepRTBModeChangeEventArgs args) { @@ -874,6 +882,7 @@ namespace VEPROMS displayRO.ProgressBar = bottomProgBar; lblEditView.Text = args.MyStepItem.MyStepRTB.ViewRTB ? "View" : "Edit"; _CurrentItem.Deleted += new ItemInfoEvent(_CurrentItem_Deleted); + dlgFindReplace.MyStepItem = args.MyStepItem; } if(tc.SelectedDisplayTabItem != null) SelectedStepTabPanel = ((DisplayTabItem)tc.SelectedDisplayTabItem).MyStepTabPanel;