This commit is contained in:
2010-04-19 13:54:31 +00:00
parent d3e88c5120
commit 2d30a26f49
2 changed files with 155 additions and 145 deletions

View File

@@ -34,6 +34,7 @@ namespace VEPROMS
DocVersionInfo _SelectedDVI = null;
StepTabPanel _SelectedStepTabPanel = null;
public FindReplace dlgFindReplace = null;
public VlnSpellCheck SpellChecker = null;
public StepTabPanel SelectedStepTabPanel
{
@@ -97,10 +98,12 @@ namespace VEPROMS
// - except for the volian laptop and Rich's Demo version where we need to use local data
if (Environment.MachineName == "RMARK-PC")
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_RMARK_DEMO";
else if (Environment.MachineName == "DELL-D430")
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_LOCAL";
//else if (Environment.MachineName == "DELL-D430")
// VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_LOCAL";
//else
// VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS";
else
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS";
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_LOCAL";
#endif
InitializeComponent();
@@ -137,6 +140,7 @@ namespace VEPROMS
toolsPanel.Expanded = false;
ribbonControl1.ExpandedChanged += new EventHandler(ribbonControl1_ExpandedChanged);
dlgFindReplace = new FindReplace();
SpellChecker = new VlnSpellCheck();
}
bool tv_InsertItemInfo(object sender, vlnTreeItemInfoInsertEventArgs args)
@@ -846,6 +850,10 @@ namespace VEPROMS
dlgFindReplace.Visible = true;
dlgFindReplace.MyDisplayBookMarks = displayBookMarks;
}
else if (args.PanelTabName == "SpellChecker")
{
SpellChecker.DoSpellCheck();
}
}
private void tc_StepPanelModeChange(object sender, StepRTBModeChangeEventArgs args)
{
@@ -911,6 +919,7 @@ namespace VEPROMS
lblEditView.Text = args.MyStepItem.MyStepRTB.ViewRTB ? "View" : "Edit";
_CurrentItem.Deleted += new ItemInfoEvent(_CurrentItem_Deleted);
dlgFindReplace.MyStepItem = args.MyStepItem;
SpellChecker.MyStepItem = args.MyStepItem;
}
if (tc.SelectedDisplayTabItem != null)
SelectedStepTabPanel = ((DisplayTabItem)tc.SelectedDisplayTabItem).MyStepTabPanel;