search logic

This commit is contained in:
John Jenko 2009-02-04 19:51:36 +00:00
parent 408ba2ff26
commit ddc6a34966
11 changed files with 1964 additions and 1919 deletions

File diff suppressed because it is too large Load Diff

View File

@ -66,7 +66,7 @@ namespace VEPROMS
{ {
get get
{ {
if(_SelectedROFst == null) if(_SelectedROFst == null && SelectedDVI != null)
_SelectedROFst = SelectedDVI.DocVersionAssociations[0].MyROFst; _SelectedROFst = SelectedDVI.DocVersionAssociations[0].MyROFst;
return _SelectedROFst; return _SelectedROFst;
} }
@ -99,7 +99,8 @@ namespace VEPROMS
_CommentTitleBckColor = epAnnotations.TitleStyle.BackColor1.Color; _CommentTitleBckColor = epAnnotations.TitleStyle.BackColor1.Color;
if (!btnAnnoDetailsPushPin.Checked) if (!btnAnnoDetailsPushPin.Checked)
epAnnotations.Expanded = false; epAnnotations.Expanded = false;
infoPanel.Expanded = false; infoPanel.Expanded = false;
toolsPanel.Expanded = false;
} }
@ -125,8 +126,11 @@ namespace VEPROMS
_MyBookMarks = MostRecentItemList.GetMRILst((System.Collections.Specialized.StringCollection)(Properties.Settings.Default["BookMarks"])); _MyBookMarks = MostRecentItemList.GetMRILst((System.Collections.Specialized.StringCollection)(Properties.Settings.Default["BookMarks"]));
SetupMRU(); SetupMRU();
SetupBookMarks(); SetupBookMarks();
CtrlAnnotationSearch.SetupAnnotationSearch(ctrlAnnotationDetails, tc); //CtrlAnnotationSearch.SetupAnnotationSearch(ctrlAnnotationDetails, tc);
ctrlAnnotationDetails.SetupAnnotations(CtrlAnnotationSearch); //ctrlAnnotationDetails.SetupAnnotations(CtrlAnnotationSearch);
displaySearch1.SetupAnnotationSearch(ctrlAnnotationDetails, tc);
ctrlAnnotationDetails.SetupAnnotations(displaySearch1);
} }
#region MRU #region MRU
private MostRecentItemList _MyMRIList; private MostRecentItemList _MyMRIList;
@ -691,9 +695,12 @@ namespace VEPROMS
/// <param name="e"></param> /// <param name="e"></param>
private void btnGlbSrch_Click(object sender, EventArgs e) private void btnGlbSrch_Click(object sender, EventArgs e)
{ {
infoPanel.Expanded = true; //infoPanel.Expanded = true;
infoTabs.SelectedTab = infotabResults; //infoTabs.SelectedTab = toolstabResults;
btnSrchRslt.Checked = true; //btnSrchRslt.Checked = true;
toolsPanel.Expanded = true;
toolsTabs.SelectedTab = toolstabResults;
} }
#endregion #endregion
@ -707,9 +714,9 @@ namespace VEPROMS
/// <param name="e"></param> /// <param name="e"></param>
private void btnSimStps_Click(object sender, EventArgs e) private void btnSimStps_Click(object sender, EventArgs e)
{ {
infoPanel.Expanded = true; //infoPanel.Expanded = true;
infoTabs.SelectedTab = infotabResults; //infoTabs.SelectedTab = toolstabResults;
btnSimStpsRslt.Checked = true; //btnSimStpsRslt.Checked = true;
} }
#endregion #endregion
@ -1167,5 +1174,23 @@ namespace VEPROMS
{ {
displayTags.MyRTB = (SelectedStepTabPanel == null) ? null : SelectedStepTabPanel.MyStepPanel.SelectedStepItem.MyStepRTB; displayTags.MyRTB = (SelectedStepTabPanel == null) ? null : SelectedStepTabPanel.MyStepPanel.SelectedStepItem.MyStepRTB;
} }
//private void tv_SectionShouldClose(object sender, vlnTreeSectionInfoEventArgs args)
//{
// if (!args.MySectionInfo.IsStepSection) tc.CloseWordItem(args.MySectionInfo);
//}
private void infotabResults_Click(object sender, EventArgs e)
{
toolsPanel.Expanded = true;
if (SelectedROFst!=null)
displaySearch1.MyROFSTLookup = SelectedROFst.ROFSTLookup;
if (SelectedDVI != null)
{
displaySearch1.Mydocversion = SelectedDVI;
displaySearch1.advTreeStepTypesFillIn();
}
displaySearch1.advTreeProcSetsFillIn();
}
} }
} }

View File

@ -399,6 +399,9 @@
bCVV/V4Ishh0HwgcBM6/gDFhmSjTv+IXqagSRZEQ5zgAAAAASUVORK5CYII= bCVV/V4Ishh0HwgcBM6/gDFhmSjTv+IXqagSRZEQ5zgAAAAASUVORK5CYII=
</value> </value>
</data> </data>
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="btnLckUlck.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="btnLckUlck.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
@ -415,42 +418,6 @@
AAAASUVORK5CYII= AAAASUVORK5CYII=
</value> </value>
</data> </data>
<data name="btnSetLock.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK+wAA
CvsBy58dkAAAAlRJREFUOE+lk+lLVFEYxuu/6UOE5IfKFkiJkJSiXMjEUUtN0solxTLJrflghq1TaWbj
mg4hOeNuw7iUe+bMuIVEYpBNaoy51Dj315wbqXeSCLrwfjmc5/c8z8u5W4Et//UJwMYZGTBFfZgwM2Hu
5W1PG10tz2nQFVFTnBfgflc233ho6TPGTFr7WZodx2m3Is33INlamB0t5UnBZQrzkg+7QxSAsaEuFm0W
pqyN3MiIJTdFRVbiKaa7c5jpyyAnKcSlVyZWAAY7DEhfe8lMCCElym+XuHzptK9n2cPrSONppMUc/Tug
XV8KtkaSI0TSdafyB2qk0UQSVD6bAzr0Wg9j7WOan92jvqKAOm0+tdo8dIVqqotyqdRkUXb/GtrbVykp
uCLG47eBXKG1RsPCVBPMmeSRvhhxfm5l9VMTjo8GnDPNa+fTw9XcyY5fSyIDGipv/RKPJuE0x+MYjGal
O4zF9kCWX7kWN5aM03IBx5uzvHsRQPq540pAnfYmzJpYHY7jx8AZll+H0l3uiyp4Oy+rI9fEK70qxnR+
pEb7KwGir2Rr43tfJEtdJ1kwHiMscBuR4Xtds092FuLFjiBGKnxIDF9fslxBV6SW+y51BmNv82e+3keG
uYvtrX6YS7w4H+qtTFClycYxrcfecoQ5/UG+mU5QdTeAiLA9FKoPyc5CPG/wZujRTuJCDigB5ZpMpvq1
DBfvxvJ0P++bI5hsCJUXJjqL2MJZiA25O4gN8voD4JmfHoM6VSVPjuv5Zl4MlrctFiY6i9jCWYhdo3wH
m/1l/3r2Ey4iunsWz150AAAAAElFTkSuQmCC
</value>
</data>
<data name="btnReleaseLck.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAASbgAA
Em4BzAbEXgAAAghJREFUOE+lk9tLk2Ecx+u/6SJC6qbsACkRkUKUB7KxuVGapB1M8iKLlo1dlGHHQVrY
ykPmheTmYW2NuSydx3awZUg0DKqli9mmNbdPe15h8XaAjV743rw8n+/v9/3yPGuBNf/1CYN0ND3uOPJ+
xsOMx8WrEVsSWeXSgr2j9vJZ3xjR+TfEwz4SoZHMDPxTQ0SCXgK+fq6cr0B3RpWZwYTTTOKrC+2pkhSY
UYRB0wMI9lOj3v13A6fJmGXvvovl0S162xrpMTbQbbxMV5OezmYd7YaLPLx9AeP1c7Q0nhXKkm1gfWxg
MTAACw5JiS924p+trHwcIPbBTPyTJfV/zt3JjfoqeQd97ddW4deniXuqiE2UsTysJDJYyNKLZG5/DXHv
CWKTR3n7pIC6Y/vlBj3GqzDvYMVdyY/xwyy9VDDcugdV8XqedWpS8LJLhb8rj9qyfLmByJsI2vg+qiE6
dJBF+z6UhevQlG5Naps0WcARZxHTbblUl/4qU7pIXc16KW/0eTFhWz6h3lzJ7Hc4bM3D05LNcUWOfIMO
Qz2xORPhp3tZMO3km+MAHTcLUCu30KTfJU0WcMicw9SdjVSW7JAbtBq0BMaMuO9txnt/O+8samb7FFJh
IrNYW0wWsFm3gYqi7D8MNjXUlaOvVUm6VH0I7cliqW1RmMgs1haTBZyU/B6k8xr/deYna7rBU0DWSCIA
AAAASUVORK5CYII=
</value>
</data>
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="btnMarkPrevPos.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="btnMarkPrevPos.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
@ -484,6 +451,39 @@
JhfngEQ8Q7IRS9R4hGQRllZKUGwe3mFynP0TcQ1KwltVy5mQWGHwsqSUVZOFyZlldF1GNNpB5PdrCE0s JhfngEQ8Q7IRS9R4hGQRllZKUGwe3mFynP0TcQ1KwltVy5mQWGHwsqSUVZOFyZlldF1GNNpB5PdrCE0s
4IRPHEddRESnF6J81oi6Xk9b7xiFqmaCYxTCYHh6CeEZjwhNLcIvKhf/KNsLBiZz0vcqx89Gcsw9zHZG 4IRPHEddRESnF6J81oi6Xk9b7xiFqmaCYxTCYHh6CeEZjwhNLcIvKhf/KNsLBiZz0vcqx89Gcsw9zHZG
4xKQjJsoHR+xHFGs4t+go2biAc5DB03uX5vZMUQuZEGBAAAAAElFTkSuQmCC 4xKQjJsoHR+xHFGs4t+go2biAc5DB03uX5vZMUQuZEGBAAAAAElFTkSuQmCC
</value>
</data>
<data name="btnSetLock.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK+wAA
CvsBy58dkAAAAlRJREFUOE+lk+lLVFEYxuu/6UOE5IfKFkiJkJSiXMjEUUtN0solxTLJrflghq1TaWbj
mg4hOeNuw7iUe+bMuIVEYpBNaoy51Dj315wbqXeSCLrwfjmc5/c8z8u5W4Et//UJwMYZGTBFfZgwM2Hu
5W1PG10tz2nQFVFTnBfgflc233ho6TPGTFr7WZodx2m3Is33INlamB0t5UnBZQrzkg+7QxSAsaEuFm0W
pqyN3MiIJTdFRVbiKaa7c5jpyyAnKcSlVyZWAAY7DEhfe8lMCCElym+XuHzptK9n2cPrSONppMUc/Tug
XV8KtkaSI0TSdafyB2qk0UQSVD6bAzr0Wg9j7WOan92jvqKAOm0+tdo8dIVqqotyqdRkUXb/GtrbVykp
uCLG47eBXKG1RsPCVBPMmeSRvhhxfm5l9VMTjo8GnDPNa+fTw9XcyY5fSyIDGipv/RKPJuE0x+MYjGal
O4zF9kCWX7kWN5aM03IBx5uzvHsRQPq540pAnfYmzJpYHY7jx8AZll+H0l3uiyp4Oy+rI9fEK70qxnR+
pEb7KwGir2Rr43tfJEtdJ1kwHiMscBuR4Xtds092FuLFjiBGKnxIDF9fslxBV6SW+y51BmNv82e+3keG
uYvtrX6YS7w4H+qtTFClycYxrcfecoQ5/UG+mU5QdTeAiLA9FKoPyc5CPG/wZujRTuJCDigB5ZpMpvq1
DBfvxvJ0P++bI5hsCJUXJjqL2MJZiA25O4gN8voD4JmfHoM6VSVPjuv5Zl4MlrctFiY6i9jCWYhdo3wH
m/1l/3r2Ey4iunsWz150AAAAAElFTkSuQmCC
</value>
</data>
<data name="btnReleaseLck.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAASbgAA
Em4BzAbEXgAAAghJREFUOE+lk9tLk2Ecx+u/6SJC6qbsACkRkUKUB7KxuVGapB1M8iKLlo1dlGHHQVrY
ykPmheTmYW2NuSydx3awZUg0DKqli9mmNbdPe15h8XaAjV743rw8n+/v9/3yPGuBNf/1CYN0ND3uOPJ+
xsOMx8WrEVsSWeXSgr2j9vJZ3xjR+TfEwz4SoZHMDPxTQ0SCXgK+fq6cr0B3RpWZwYTTTOKrC+2pkhSY
UYRB0wMI9lOj3v13A6fJmGXvvovl0S162xrpMTbQbbxMV5OezmYd7YaLPLx9AeP1c7Q0nhXKkm1gfWxg
MTAACw5JiS924p+trHwcIPbBTPyTJfV/zt3JjfoqeQd97ddW4deniXuqiE2UsTysJDJYyNKLZG5/DXHv
CWKTR3n7pIC6Y/vlBj3GqzDvYMVdyY/xwyy9VDDcugdV8XqedWpS8LJLhb8rj9qyfLmByJsI2vg+qiE6
dJBF+z6UhevQlG5Naps0WcARZxHTbblUl/4qU7pIXc16KW/0eTFhWz6h3lzJ7Hc4bM3D05LNcUWOfIMO
Qz2xORPhp3tZMO3km+MAHTcLUCu30KTfJU0WcMicw9SdjVSW7JAbtBq0BMaMuO9txnt/O+8samb7FFJh
IrNYW0wWsFm3gYqi7D8MNjXUlaOvVUm6VH0I7cliqW1RmMgs1haTBZyU/B6k8xr/deYna7rBU0DWSCIA
AAAASUVORK5CYII=
</value> </value>
</data> </data>
<data name="btnAnnoDetailsPushPin.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="btnAnnoDetailsPushPin.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@ -521,29 +521,18 @@
rkJggg== rkJggg==
</value> </value>
</data> </data>
<data name="btnSrchRslt.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value> <value>17, 17</value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 </metadata>
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK+wAA
CvsBy58dkAAAAkNJREFUOE+d0l1IU2EYB/AZXSR0GV10bRclXWRdRB8kk5TIMV3iFgWC1FhgZbNlBNY2
KqEwzbkMwpVzKyoWeswuXNOWy8yZ8zPXyMlcbbbvj+NZ24x/74JC7BjSgQfOxfv+zv95zpMFgKN60LW+
KH9X0ez8At/1xb8tGqc3B4KRjRuysz/lbM1rquBtpzirPRmg941Nrm6nxrpMQwmj9SOMU07cowZwsUkP
geRaoPxM/YnMObbilElubGnWdL43DY7/8NEMPEwSzhiDUR8Nauor5JoeFB6vTR0S1eSwAiaLTaPr7Iu7
/RHQqTSiyTR8iynMBBfRPxeFzuqB5LoGBwTnlKxAy0Nq+qXFRi4lEU8tgU4vIcSk4QgyMDsjeGILoE77
GvtLq8OswHlFKywON5zRBPxMCqHvaXjiSUx+o9H3OQz9sBfKRyM4WCYl9/+eA0feqJ/VvfqAkQUaMyEG
jnACE6T/t/MxdE8H0DbghrSlB3uKq0ZZgau3O7R1dw2J3rkYzK44qRiMJDplD6LD6kW9YRLCmmaUV4hp
VuD0ZfWmo2Jl9NYzM56OB/B8IoTHpG/NOy9uUnZUKtrBLZdCrzrJ3kJGJb+ykFepWDylaMMVbT/56hhq
1C9wTKZCftlZ3JHzEbbXsyJ/loMgOy81GO5zRbKhfSXV8QJRLYRVja4jvMMy7u4dGGzNZUVYt+t3r8Li
3KzMO7+EJyDFivwTWD601ZA1ASTJuuVJuhvycEFc8GuoawJWJNlL0gyTKv0vYOUu/AQZkMf/XhecFgAA
AABJRU5ErkJggg==
</value>
</data>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>402, 17</value> <value>402, 17</value>
</metadata> </metadata>
<metadata name="tmrTreeView.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="tmrTreeView.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>499, 17</value> <value>499, 17</value>
</metadata> </metadata>
<metadata name="tabControlPanelLD.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="buttonItem1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="buttonItem1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
R0lGODlhFAAUAPEAAAAAAP///////wAAACH5BAEAAAIALAAAAAAUABQAAAIjlI+py20AoUOxThFPdpKC R0lGODlhFAAUAPEAAAAAAP///////wAAACH5BAEAAAIALAAAAAAUABQAAAIjlI+py20AoUOxThFPdpKC
@ -553,19 +542,6 @@
<metadata name="itemAnnotationsBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="itemAnnotationsBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>156, 17</value> <value>156, 17</value>
</metadata> </metadata>
<data name="btnSimStpsRslt.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAASawAA
EmsB4byhqAAAAKRJREFUOE/NlNEOgCAIRcv55P//ay8u61owJE03aavGJgInuC7XlNJi+gBoaaawPK1l
dwUwuLBpO8XgtxbHHmfc0nGH3vkU98hGACqAL+NYFzk9YP5AvIoArQGLnBEgCuSoukPEyegsmiPXivUe
+YB2gVrTN38YKCF6rf1mh1IXWmM0Aug4xYZGNulQCi0PYVrD6VNu/Vqj+w8NrS6J726b33Z4AFzeFLS3
F5viAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="tabControlPanelLD.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>41</value> <value>41</value>
</metadata> </metadata>

View File

@ -30,6 +30,8 @@ namespace VEPROMS
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmVersionsProperties)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmVersionsProperties));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.ppBtnCancel = new System.Windows.Forms.Button(); this.ppBtnCancel = new System.Windows.Forms.Button();
this.ppBtnOK = new System.Windows.Forms.Button(); this.ppBtnOK = new System.Windows.Forms.Button();
this.ppBtnDefaultChgBar = new DevComponents.DotNetBar.ButtonX(); this.ppBtnDefaultChgBar = new DevComponents.DotNetBar.ButtonX();
@ -94,7 +96,7 @@ namespace VEPROMS
this.ppChbxDisAutoDuplex = new System.Windows.Forms.CheckBox(); this.ppChbxDisAutoDuplex = new System.Windows.Forms.CheckBox();
this.label16 = new System.Windows.Forms.Label(); this.label16 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label(); this.label17 = new System.Windows.Forms.Label();
this.ppGrdLibDocList = new C1.Win.C1FlexGrid.C1FlexGrid(); //this.ppGrdLibDocList = new C1.Win.C1FlexGrid.C1FlexGrid();
this.documentInfoListBindingSource = new System.Windows.Forms.BindingSource(this.components); this.documentInfoListBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip(); this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip();
this.ppCbShwDefSettings = new DevComponents.DotNetBar.Controls.CheckBoxX(); this.ppCbShwDefSettings = new DevComponents.DotNetBar.Controls.CheckBoxX();
@ -126,6 +128,9 @@ namespace VEPROMS
this.btnRefObjs = new DevComponents.DotNetBar.ButtonX(); this.btnRefObjs = new DevComponents.DotNetBar.ButtonX();
this.btnGeneral = new DevComponents.DotNetBar.ButtonX(); this.btnGeneral = new DevComponents.DotNetBar.ButtonX();
this.ROPrefixBindingSource = new System.Windows.Forms.BindingSource(this.components); this.ROPrefixBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.ppGrdLibDocList = new DevComponents.DotNetBar.Controls.DataGridViewX();
this.documentEntryCountDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.libTitleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.docVersionConfigBindingSource)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.docVersionConfigBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.formatInfoListBindingSource)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.formatInfoListBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.imageCodecInfoBindingSource)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.imageCodecInfoBindingSource)).BeginInit();
@ -915,17 +920,17 @@ namespace VEPROMS
// //
// ppGrdLibDocList // ppGrdLibDocList
// //
this.ppGrdLibDocList.AutoGenerateColumns = false; //this.ppGrdLibDocList.AutoGenerateColumns = false;
this.ppGrdLibDocList.ColumnInfo = resources.GetString("ppGrdLibDocList.ColumnInfo"); //this.ppGrdLibDocList.ColumnInfo = resources.GetString("ppGrdLibDocList.ColumnInfo");
this.ppGrdLibDocList.DataSource = this.documentInfoListBindingSource; //this.ppGrdLibDocList.DataSource = this.documentInfoListBindingSource;
this.ppGrdLibDocList.ExtendLastCol = true; //this.ppGrdLibDocList.ExtendLastCol = true;
this.ppGrdLibDocList.Location = new System.Drawing.Point(15, 15); //this.ppGrdLibDocList.Location = new System.Drawing.Point(15, 15);
this.ppGrdLibDocList.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); //this.ppGrdLibDocList.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.ppGrdLibDocList.Name = "ppGrdLibDocList"; //this.ppGrdLibDocList.Name = "ppGrdLibDocList";
this.ppGrdLibDocList.Rows.Count = 1; //this.ppGrdLibDocList.Rows.Count = 1;
this.ppGrdLibDocList.Rows.DefaultSize = 19; //this.ppGrdLibDocList.Rows.DefaultSize = 19;
this.ppGrdLibDocList.Size = new System.Drawing.Size(628, 240); //this.ppGrdLibDocList.Size = new System.Drawing.Size(628, 240);
this.ppGrdLibDocList.TabIndex = 0; //this.ppGrdLibDocList.TabIndex = 0;
// //
// documentInfoListBindingSource // documentInfoListBindingSource
// //
@ -1428,6 +1433,52 @@ namespace VEPROMS
this.btnGeneral.TabIndex = 0; this.btnGeneral.TabIndex = 0;
this.btnGeneral.Text = "General"; this.btnGeneral.Text = "General";
this.btnGeneral.Click += new System.EventHandler(this.btnGeneral_Click); this.btnGeneral.Click += new System.EventHandler(this.btnGeneral_Click);
//
// ppGrdLibDocList
//
this.ppGrdLibDocList.AllowUserToAddRows = false;
this.ppGrdLibDocList.AutoGenerateColumns = false;
this.ppGrdLibDocList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.ppGrdLibDocList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.documentEntryCountDataGridViewTextBoxColumn,
this.libTitleDataGridViewTextBoxColumn});
this.ppGrdLibDocList.DataSource = this.documentInfoListBindingSource;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.ppGrdLibDocList.DefaultCellStyle = dataGridViewCellStyle2;
this.ppGrdLibDocList.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
this.ppGrdLibDocList.HighlightSelectedColumnHeaders = false;
this.ppGrdLibDocList.Location = new System.Drawing.Point(5, 4);
this.ppGrdLibDocList.Name = "ppGrdLibDocList";
this.ppGrdLibDocList.RowHeadersVisible = false;
this.ppGrdLibDocList.RowTemplate.Height = 24;
this.ppGrdLibDocList.SelectAllSignVisible = false;
this.ppGrdLibDocList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.ppGrdLibDocList.Size = new System.Drawing.Size(647, 300);
this.ppGrdLibDocList.TabIndex = 1;
//
// documentEntryCountDataGridViewTextBoxColumn
//
this.documentEntryCountDataGridViewTextBoxColumn.DataPropertyName = "DocumentEntryCount";
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.documentEntryCountDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1;
this.documentEntryCountDataGridViewTextBoxColumn.HeaderText = "Number of Usages";
this.documentEntryCountDataGridViewTextBoxColumn.Name = "documentEntryCountDataGridViewTextBoxColumn";
this.documentEntryCountDataGridViewTextBoxColumn.ReadOnly = true;
this.documentEntryCountDataGridViewTextBoxColumn.Width = 95;
//
// libTitleDataGridViewTextBoxColumn
//
this.libTitleDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.libTitleDataGridViewTextBoxColumn.DataPropertyName = "LibTitle";
this.libTitleDataGridViewTextBoxColumn.HeaderText = "Library Document Title";
this.libTitleDataGridViewTextBoxColumn.Name = "libTitleDataGridViewTextBoxColumn";
this.libTitleDataGridViewTextBoxColumn.ReadOnly = true;
// //
// frmVersionsProperties // frmVersionsProperties
// //
@ -1524,7 +1575,7 @@ namespace VEPROMS
private System.Windows.Forms.Label ppLblChgBarTxtTypeDefault; private System.Windows.Forms.Label ppLblChgBarTxtTypeDefault;
private System.Windows.Forms.Label ppLblChgBarUserMsgTwoDefault; private System.Windows.Forms.Label ppLblChgBarUserMsgTwoDefault;
private System.Windows.Forms.Label ppLblChgBarUserMsgOneDefault; private System.Windows.Forms.Label ppLblChgBarUserMsgOneDefault;
private C1.Win.C1FlexGrid.C1FlexGrid ppGrdLibDocList; // private C1.Win.C1FlexGrid.C1FlexGrid ppGrdLibDocList;
private System.Windows.Forms.BindingSource formatInfoListBindingSource; private System.Windows.Forms.BindingSource formatInfoListBindingSource;
private DevComponents.DotNetBar.Controls.ComboBoxEx ppCmbxPagination; private DevComponents.DotNetBar.Controls.ComboBoxEx ppCmbxPagination;
private DevComponents.DotNetBar.Controls.ComboBoxEx ppCmbxWatermark; private DevComponents.DotNetBar.Controls.ComboBoxEx ppCmbxWatermark;
@ -1582,5 +1633,8 @@ namespace VEPROMS
private System.Windows.Forms.TextBox tbRoDb; private System.Windows.Forms.TextBox tbRoDb;
private System.Windows.Forms.Button ppBtnRoDbBrowse; private System.Windows.Forms.Button ppBtnRoDbBrowse;
private System.Windows.Forms.BindingSource ROPrefixBindingSource; private System.Windows.Forms.BindingSource ROPrefixBindingSource;
private DevComponents.DotNetBar.Controls.DataGridViewX ppGrdLibDocList;
private System.Windows.Forms.DataGridViewTextBoxColumn documentEntryCountDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn libTitleDataGridViewTextBoxColumn;
} }
} }

View File

@ -862,6 +862,10 @@ namespace VEPROMS.CSLA.Library
{ {
get { return _SearchPath; } get { return _SearchPath; }
} }
public string ShortSearchPath
{
get { return Regex.Replace(_SearchPath, "\x11.*?\x07", "\x07"); }
}
internal int _SearchAnnotationID; internal int _SearchAnnotationID;
public int SearchAnnotationID public int SearchAnnotationID
{ {

View File

@ -223,7 +223,8 @@ namespace VEPROMS.CSLA.Library
List<StepDataRetval> sds = new List<StepDataRetval>(); List<StepDataRetval> sds = new List<StepDataRetval>();
foreach (StepData sd in StepDataList) foreach (StepData sd in StepDataList)
{ {
if (!sd.Inactive && sd.StepEditData.Searchable) sds.Add(new StepDataRetval(sd.StepEditData.TypeMenu.MenuItem, Convert.ToInt32(sd.Index))); if (!sd.Inactive && sd.StepEditData.Searchable && sd.StepEditData.TypeMenu.InMenu)
sds.Add(new StepDataRetval(sd.StepEditData.TypeMenu.MenuItem, Convert.ToInt32(sd.Index)));
} }
return sds; return sds;
} }
@ -250,7 +251,7 @@ namespace VEPROMS.CSLA.Library
int retval = -1; int retval = -1;
int cntitm = 0; int cntitm = 0;
// if there are alternatenames for this item, use that list, otherwise, get list from // if there are alternatenames for this item, use that list, otherwise, get list from
// xml for current node & its children.... // xml for current node & its children....
if (topType.StepEditData.TypeMenu.AlternateNameList != null && topType.StepEditData.TypeMenu.AlternateNameList != "") if (topType.StepEditData.TypeMenu.AlternateNameList != null && topType.StepEditData.TypeMenu.AlternateNameList != "")
{ {
// loop through the AlternateName string, it has indices for step types.. // loop through the AlternateName string, it has indices for step types..

View File

@ -28,256 +28,303 @@ namespace Volian.Controls.Library
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AnnotationDetails)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip(); this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip();
this.rtxbComment = new System.Windows.Forms.RichTextBox(); this.rtxbComment = new System.Windows.Forms.RichTextBox();
this.btnSaveAnnotation = new DevComponents.DotNetBar.ButtonX(); this.btnSaveAnnotation = new DevComponents.DotNetBar.ButtonX();
this.btnCancelAnnoation = new DevComponents.DotNetBar.ButtonX(); this.btnCancelAnnoation = new DevComponents.DotNetBar.ButtonX();
this.cbGridAnnoType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); this.cbGridAnnoType = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.btnRemoveAnnotation = new DevComponents.DotNetBar.ButtonX(); this.btnRemoveAnnotation = new DevComponents.DotNetBar.ButtonX();
this.btnAddAnnotation = new DevComponents.DotNetBar.ButtonX(); this.btnAddAnnotation = new DevComponents.DotNetBar.ButtonX();
this.pannelAnnoEdit = new DevComponents.DotNetBar.PanelEx(); this.pannelAnnoEdit = new DevComponents.DotNetBar.PanelEx();
this.labelX1 = new DevComponents.DotNetBar.LabelX(); this.labelX1 = new DevComponents.DotNetBar.LabelX();
this.panelAnnoEditBtns = new DevComponents.DotNetBar.PanelEx(); this.panelAnnoEditBtns = new DevComponents.DotNetBar.PanelEx();
this.expandableSplitter4 = new DevComponents.DotNetBar.ExpandableSplitter(); this.expandableSplitter4 = new DevComponents.DotNetBar.ExpandableSplitter();
this.pannelAnnoGrid = new DevComponents.DotNetBar.PanelEx(); this.pannelAnnoGrid = new DevComponents.DotNetBar.PanelEx();
this.c1AnnotationGrid = new C1.Win.C1FlexGrid.C1FlexGrid(); this.dgAnnotations = new DevComponents.DotNetBar.Controls.DataGridViewX();
this.itemAnnotationsBindingSource = new System.Windows.Forms.BindingSource(this.components); this.myAnnotationTypeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pannelAnnoEdit.SuspendLayout(); this.dTSDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panelAnnoEditBtns.SuspendLayout(); this.userIDDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pannelAnnoGrid.SuspendLayout(); this.searchTextDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.c1AnnotationGrid)).BeginInit(); this.itemAnnotationsBindingSource = new System.Windows.Forms.BindingSource(this.components);
((System.ComponentModel.ISupportInitialize)(this.itemAnnotationsBindingSource)).BeginInit(); this.pannelAnnoEdit.SuspendLayout();
this.SuspendLayout(); this.panelAnnoEditBtns.SuspendLayout();
// this.pannelAnnoGrid.SuspendLayout();
// superTooltip1 ((System.ComponentModel.ISupportInitialize)(this.dgAnnotations)).BeginInit();
// ((System.ComponentModel.ISupportInitialize)(this.itemAnnotationsBindingSource)).BeginInit();
this.superTooltip1.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; this.SuspendLayout();
// //
// rtxbComment // superTooltip1
// //
this.rtxbComment.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.superTooltip1.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
| System.Windows.Forms.AnchorStyles.Left) //
| System.Windows.Forms.AnchorStyles.Right))); // rtxbComment
this.rtxbComment.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); //
this.rtxbComment.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.rtxbComment.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
this.rtxbComment.Location = new System.Drawing.Point(87, 33); | System.Windows.Forms.AnchorStyles.Left)
this.rtxbComment.Name = "rtxbComment"; | System.Windows.Forms.AnchorStyles.Right)));
this.rtxbComment.Size = new System.Drawing.Size(489, 292); this.rtxbComment.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
this.superTooltip1.SetSuperTooltip(this.rtxbComment, new DevComponents.DotNetBar.SuperTooltipInfo("Annotation", "", "Enter the annotation information here.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray)); this.rtxbComment.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rtxbComment.TabIndex = 1; this.rtxbComment.Location = new System.Drawing.Point(87, 33);
this.rtxbComment.Text = ""; this.rtxbComment.Name = "rtxbComment";
this.rtxbComment.TextChanged += new System.EventHandler(this.rtxbComment_TextChanged); this.rtxbComment.Size = new System.Drawing.Size(489, 292);
// this.superTooltip1.SetSuperTooltip(this.rtxbComment, new DevComponents.DotNetBar.SuperTooltipInfo("Annotation", "", "Enter the annotation information here.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
// btnSaveAnnotation this.rtxbComment.TabIndex = 1;
// this.rtxbComment.Text = "";
this.btnSaveAnnotation.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.rtxbComment.TextChanged += new System.EventHandler(this.rtxbComment_TextChanged);
this.btnSaveAnnotation.Enabled = false; //
this.btnSaveAnnotation.Location = new System.Drawing.Point(419, 8); // btnSaveAnnotation
this.btnSaveAnnotation.Name = "btnSaveAnnotation"; //
this.btnSaveAnnotation.Size = new System.Drawing.Size(71, 20); this.btnSaveAnnotation.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.superTooltip1.SetSuperTooltip(this.btnSaveAnnotation, new DevComponents.DotNetBar.SuperTooltipInfo("Save Changes", "", "This will save the new annotation or changes made to an existing annotation.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray)); this.btnSaveAnnotation.Enabled = false;
this.btnSaveAnnotation.TabIndex = 9; this.btnSaveAnnotation.Location = new System.Drawing.Point(419, 4);
this.btnSaveAnnotation.Text = "Save"; this.btnSaveAnnotation.Name = "btnSaveAnnotation";
this.btnSaveAnnotation.Click += new System.EventHandler(this.btnSaveAnnotation_Click); this.btnSaveAnnotation.Size = new System.Drawing.Size(71, 24);
// this.superTooltip1.SetSuperTooltip(this.btnSaveAnnotation, new DevComponents.DotNetBar.SuperTooltipInfo("Save Changes", "", "This will save the new annotation or changes made to an existing annotation.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
// btnCancelAnnoation this.btnSaveAnnotation.TabIndex = 9;
// this.btnSaveAnnotation.Text = "Save";
this.btnCancelAnnoation.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btnSaveAnnotation.Click += new System.EventHandler(this.btnSaveAnnotation_Click);
this.btnCancelAnnoation.Enabled = false; //
this.btnCancelAnnoation.Location = new System.Drawing.Point(329, 8); // btnCancelAnnoation
this.btnCancelAnnoation.Name = "btnCancelAnnoation"; //
this.btnCancelAnnoation.Size = new System.Drawing.Size(70, 20); this.btnCancelAnnoation.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.superTooltip1.SetSuperTooltip(this.btnCancelAnnoation, new DevComponents.DotNetBar.SuperTooltipInfo("Cancel", "", "This will cancel the changes made to the annotation text and type selection", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(145, 100))); this.btnCancelAnnoation.Enabled = false;
this.btnCancelAnnoation.TabIndex = 8; this.btnCancelAnnoation.Location = new System.Drawing.Point(329, 4);
this.btnCancelAnnoation.Text = "Cancel"; this.btnCancelAnnoation.Name = "btnCancelAnnoation";
this.btnCancelAnnoation.Click += new System.EventHandler(this.btnCancelAnnoation_Click); this.btnCancelAnnoation.Size = new System.Drawing.Size(70, 24);
// this.superTooltip1.SetSuperTooltip(this.btnCancelAnnoation, new DevComponents.DotNetBar.SuperTooltipInfo("Cancel", "", "This will cancel the changes made to the annotation text and type selection", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(145, 100)));
// cbGridAnnoType this.btnCancelAnnoation.TabIndex = 8;
// this.btnCancelAnnoation.Text = "Cancel";
this.cbGridAnnoType.DisplayMember = "Text"; this.btnCancelAnnoation.Click += new System.EventHandler(this.btnCancelAnnoation_Click);
this.cbGridAnnoType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; //
this.cbGridAnnoType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; // cbGridAnnoType
this.cbGridAnnoType.FlatStyle = System.Windows.Forms.FlatStyle.Standard; //
this.cbGridAnnoType.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cbGridAnnoType.DisplayMember = "Text";
this.cbGridAnnoType.ForeColor = System.Drawing.SystemColors.WindowText; this.cbGridAnnoType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.cbGridAnnoType.Location = new System.Drawing.Point(134, 4); this.cbGridAnnoType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbGridAnnoType.Name = "cbGridAnnoType"; this.cbGridAnnoType.FlatStyle = System.Windows.Forms.FlatStyle.Standard;
this.cbGridAnnoType.PreventEnterBeep = true; this.cbGridAnnoType.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbGridAnnoType.Size = new System.Drawing.Size(165, 23); this.cbGridAnnoType.ForeColor = System.Drawing.SystemColors.WindowText;
this.superTooltip1.SetSuperTooltip(this.cbGridAnnoType, new DevComponents.DotNetBar.SuperTooltipInfo("Select Annotation Type", "", "This drop down list contains the posible annotation types.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray)); this.cbGridAnnoType.Location = new System.Drawing.Point(134, 4);
this.cbGridAnnoType.TabIndex = 7; this.cbGridAnnoType.Name = "cbGridAnnoType";
this.cbGridAnnoType.WatermarkBehavior = DevComponents.DotNetBar.eWatermarkBehavior.HideNonEmpty; this.cbGridAnnoType.PreventEnterBeep = true;
this.cbGridAnnoType.WatermarkText = "Select Annotation Type"; this.cbGridAnnoType.Size = new System.Drawing.Size(165, 23);
this.cbGridAnnoType.SelectedValueChanged += new System.EventHandler(this.cbGridAnnoType_SelectedValueChanged); this.superTooltip1.SetSuperTooltip(this.cbGridAnnoType, new DevComponents.DotNetBar.SuperTooltipInfo("Select Annotation Type", "", "This drop down list contains the posible annotation types.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
// this.cbGridAnnoType.TabIndex = 7;
// btnRemoveAnnotation this.cbGridAnnoType.WatermarkBehavior = DevComponents.DotNetBar.eWatermarkBehavior.HideNonEmpty;
// this.cbGridAnnoType.WatermarkText = "Select Annotation Type";
this.btnRemoveAnnotation.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.cbGridAnnoType.SelectedValueChanged += new System.EventHandler(this.cbGridAnnoType_SelectedValueChanged);
this.btnRemoveAnnotation.Location = new System.Drawing.Point(6, 34); //
this.btnRemoveAnnotation.Name = "btnRemoveAnnotation"; // btnRemoveAnnotation
this.btnRemoveAnnotation.Size = new System.Drawing.Size(71, 20); //
this.superTooltip1.SetSuperTooltip(this.btnRemoveAnnotation, new DevComponents.DotNetBar.SuperTooltipInfo("Remove Annotation", "", "This will remove the currently selected annotation.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray)); this.btnRemoveAnnotation.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnRemoveAnnotation.TabIndex = 4; this.btnRemoveAnnotation.Location = new System.Drawing.Point(6, 34);
this.btnRemoveAnnotation.Text = "Remove"; this.btnRemoveAnnotation.Name = "btnRemoveAnnotation";
this.btnRemoveAnnotation.Click += new System.EventHandler(this.btnRemoveAnnotation_Click); this.btnRemoveAnnotation.Size = new System.Drawing.Size(71, 24);
// this.superTooltip1.SetSuperTooltip(this.btnRemoveAnnotation, new DevComponents.DotNetBar.SuperTooltipInfo("Remove Annotation", "", "This will remove the currently selected annotation.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
// btnAddAnnotation this.btnRemoveAnnotation.TabIndex = 4;
// this.btnRemoveAnnotation.Text = "Remove";
this.btnAddAnnotation.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.btnRemoveAnnotation.Click += new System.EventHandler(this.btnRemoveAnnotation_Click);
this.btnAddAnnotation.Location = new System.Drawing.Point(6, 4); //
this.btnAddAnnotation.Name = "btnAddAnnotation"; // btnAddAnnotation
this.btnAddAnnotation.Size = new System.Drawing.Size(71, 20); //
this.superTooltip1.SetSuperTooltip(this.btnAddAnnotation, new DevComponents.DotNetBar.SuperTooltipInfo("Add New Annotation", "", "This button will create a new annotation.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray)); this.btnAddAnnotation.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnAddAnnotation.TabIndex = 3; this.btnAddAnnotation.Location = new System.Drawing.Point(6, 4);
this.btnAddAnnotation.Text = "Add"; this.btnAddAnnotation.Name = "btnAddAnnotation";
this.btnAddAnnotation.Click += new System.EventHandler(this.btnAddAnnotation_Click); this.btnAddAnnotation.Size = new System.Drawing.Size(71, 24);
// this.superTooltip1.SetSuperTooltip(this.btnAddAnnotation, new DevComponents.DotNetBar.SuperTooltipInfo("Add New Annotation", "", "This button will create a new annotation.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
// pannelAnnoEdit this.btnAddAnnotation.TabIndex = 3;
// this.btnAddAnnotation.Text = "Add";
this.pannelAnnoEdit.CanvasColor = System.Drawing.SystemColors.Control; this.btnAddAnnotation.Click += new System.EventHandler(this.btnAddAnnotation_Click);
this.pannelAnnoEdit.Controls.Add(this.rtxbComment); //
this.pannelAnnoEdit.Controls.Add(this.btnSaveAnnotation); // pannelAnnoEdit
this.pannelAnnoEdit.Controls.Add(this.btnCancelAnnoation); //
this.pannelAnnoEdit.Controls.Add(this.labelX1); this.pannelAnnoEdit.CanvasColor = System.Drawing.SystemColors.Control;
this.pannelAnnoEdit.Controls.Add(this.cbGridAnnoType); this.pannelAnnoEdit.Controls.Add(this.rtxbComment);
this.pannelAnnoEdit.Controls.Add(this.panelAnnoEditBtns); this.pannelAnnoEdit.Controls.Add(this.btnSaveAnnotation);
this.pannelAnnoEdit.Dock = System.Windows.Forms.DockStyle.Fill; this.pannelAnnoEdit.Controls.Add(this.btnCancelAnnoation);
this.pannelAnnoEdit.Location = new System.Drawing.Point(548, 0); this.pannelAnnoEdit.Controls.Add(this.labelX1);
this.pannelAnnoEdit.Name = "pannelAnnoEdit"; this.pannelAnnoEdit.Controls.Add(this.cbGridAnnoType);
this.pannelAnnoEdit.Size = new System.Drawing.Size(576, 325); this.pannelAnnoEdit.Controls.Add(this.panelAnnoEditBtns);
this.pannelAnnoEdit.Style.Alignment = System.Drawing.StringAlignment.Center; this.pannelAnnoEdit.Dock = System.Windows.Forms.DockStyle.Fill;
this.pannelAnnoEdit.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; this.pannelAnnoEdit.Location = new System.Drawing.Point(548, 0);
this.pannelAnnoEdit.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; this.pannelAnnoEdit.Name = "pannelAnnoEdit";
this.pannelAnnoEdit.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.pannelAnnoEdit.Size = new System.Drawing.Size(576, 325);
this.pannelAnnoEdit.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; this.pannelAnnoEdit.Style.Alignment = System.Drawing.StringAlignment.Center;
this.pannelAnnoEdit.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; this.pannelAnnoEdit.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.pannelAnnoEdit.Style.GradientAngle = 90; this.pannelAnnoEdit.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
this.pannelAnnoEdit.TabIndex = 16; this.pannelAnnoEdit.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.pannelAnnoEdit.Text = "panelEx2"; this.pannelAnnoEdit.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.pannelAnnoEdit.ThemeAware = true; this.pannelAnnoEdit.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
// this.pannelAnnoEdit.Style.GradientAngle = 90;
// labelX1 this.pannelAnnoEdit.TabIndex = 16;
// this.pannelAnnoEdit.Text = "panelEx2";
this.labelX1.AutoSize = true; this.pannelAnnoEdit.ThemeAware = true;
this.labelX1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); //
this.labelX1.Location = new System.Drawing.Point(93, 8); // labelX1
this.labelX1.Name = "labelX1"; //
this.labelX1.Size = new System.Drawing.Size(35, 17); this.labelX1.AutoSize = true;
this.labelX1.TabIndex = 10; this.labelX1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelX1.Text = "Type:"; this.labelX1.Location = new System.Drawing.Point(93, 8);
// this.labelX1.Name = "labelX1";
// panelAnnoEditBtns this.labelX1.Size = new System.Drawing.Size(35, 17);
// this.labelX1.TabIndex = 10;
this.panelAnnoEditBtns.CanvasColor = System.Drawing.SystemColors.Control; this.labelX1.Text = "Type:";
this.panelAnnoEditBtns.Controls.Add(this.btnRemoveAnnotation); //
this.panelAnnoEditBtns.Controls.Add(this.btnAddAnnotation); // panelAnnoEditBtns
this.panelAnnoEditBtns.Dock = System.Windows.Forms.DockStyle.Left; //
this.panelAnnoEditBtns.Location = new System.Drawing.Point(0, 0); this.panelAnnoEditBtns.CanvasColor = System.Drawing.SystemColors.Control;
this.panelAnnoEditBtns.Name = "panelAnnoEditBtns"; this.panelAnnoEditBtns.Controls.Add(this.btnRemoveAnnotation);
this.panelAnnoEditBtns.Size = new System.Drawing.Size(87, 325); this.panelAnnoEditBtns.Controls.Add(this.btnAddAnnotation);
this.panelAnnoEditBtns.Style.Alignment = System.Drawing.StringAlignment.Center; this.panelAnnoEditBtns.Dock = System.Windows.Forms.DockStyle.Left;
this.panelAnnoEditBtns.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; this.panelAnnoEditBtns.Location = new System.Drawing.Point(0, 0);
this.panelAnnoEditBtns.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; this.panelAnnoEditBtns.Name = "panelAnnoEditBtns";
this.panelAnnoEditBtns.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; this.panelAnnoEditBtns.Size = new System.Drawing.Size(87, 325);
this.panelAnnoEditBtns.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; this.panelAnnoEditBtns.Style.Alignment = System.Drawing.StringAlignment.Center;
this.panelAnnoEditBtns.Style.GradientAngle = 90; this.panelAnnoEditBtns.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.panelAnnoEditBtns.TabIndex = 11; this.panelAnnoEditBtns.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
this.panelAnnoEditBtns.ThemeAware = true; this.panelAnnoEditBtns.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
// this.panelAnnoEditBtns.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
// expandableSplitter4 this.panelAnnoEditBtns.Style.GradientAngle = 90;
// this.panelAnnoEditBtns.TabIndex = 11;
this.expandableSplitter4.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(167)))), ((int)(((byte)(173)))), ((int)(((byte)(182))))); this.panelAnnoEditBtns.ThemeAware = true;
this.expandableSplitter4.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; //
this.expandableSplitter4.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; // expandableSplitter4
this.expandableSplitter4.ExpandFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(167)))), ((int)(((byte)(173)))), ((int)(((byte)(182))))); //
this.expandableSplitter4.ExpandFillColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; this.expandableSplitter4.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(101)))), ((int)(((byte)(147)))), ((int)(((byte)(207)))));
this.expandableSplitter4.ExpandLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.expandableSplitter4.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.expandableSplitter4.ExpandLineColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; this.expandableSplitter4.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.expandableSplitter4.GripDarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.expandableSplitter4.ExpandFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(101)))), ((int)(((byte)(147)))), ((int)(((byte)(207)))));
this.expandableSplitter4.GripDarkColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; this.expandableSplitter4.ExpandFillColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.expandableSplitter4.GripLightColor = System.Drawing.Color.FromArgb(((int)(((byte)(205)))), ((int)(((byte)(208)))), ((int)(((byte)(213))))); this.expandableSplitter4.ExpandLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
this.expandableSplitter4.GripLightColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; this.expandableSplitter4.ExpandLineColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText;
this.expandableSplitter4.HotBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(151)))), ((int)(((byte)(61))))); this.expandableSplitter4.GripDarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
this.expandableSplitter4.HotBackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(184)))), ((int)(((byte)(94))))); this.expandableSplitter4.GripDarkColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText;
this.expandableSplitter4.HotBackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground2; this.expandableSplitter4.GripLightColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255)))));
this.expandableSplitter4.HotBackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground; this.expandableSplitter4.GripLightColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
this.expandableSplitter4.HotExpandFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(167)))), ((int)(((byte)(173)))), ((int)(((byte)(182))))); this.expandableSplitter4.HotBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(151)))), ((int)(((byte)(61)))));
this.expandableSplitter4.HotExpandFillColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; this.expandableSplitter4.HotBackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(184)))), ((int)(((byte)(94)))));
this.expandableSplitter4.HotExpandLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.expandableSplitter4.HotBackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground2;
this.expandableSplitter4.HotExpandLineColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; this.expandableSplitter4.HotBackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground;
this.expandableSplitter4.HotGripDarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(167)))), ((int)(((byte)(173)))), ((int)(((byte)(182))))); this.expandableSplitter4.HotExpandFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(101)))), ((int)(((byte)(147)))), ((int)(((byte)(207)))));
this.expandableSplitter4.HotGripDarkColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; this.expandableSplitter4.HotExpandFillColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.expandableSplitter4.HotGripLightColor = System.Drawing.Color.FromArgb(((int)(((byte)(205)))), ((int)(((byte)(208)))), ((int)(((byte)(213))))); this.expandableSplitter4.HotExpandLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
this.expandableSplitter4.HotGripLightColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; this.expandableSplitter4.HotExpandLineColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText;
this.expandableSplitter4.Location = new System.Drawing.Point(545, 0); this.expandableSplitter4.HotGripDarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(101)))), ((int)(((byte)(147)))), ((int)(((byte)(207)))));
this.expandableSplitter4.Name = "expandableSplitter4"; this.expandableSplitter4.HotGripDarkColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.expandableSplitter4.Size = new System.Drawing.Size(3, 325); this.expandableSplitter4.HotGripLightColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255)))));
this.expandableSplitter4.Style = DevComponents.DotNetBar.eSplitterStyle.Office2007; this.expandableSplitter4.HotGripLightColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
this.expandableSplitter4.TabIndex = 15; this.expandableSplitter4.Location = new System.Drawing.Point(545, 0);
this.expandableSplitter4.TabStop = false; this.expandableSplitter4.Name = "expandableSplitter4";
// this.expandableSplitter4.Size = new System.Drawing.Size(3, 325);
// pannelAnnoGrid this.expandableSplitter4.Style = DevComponents.DotNetBar.eSplitterStyle.Office2007;
// this.expandableSplitter4.TabIndex = 15;
this.pannelAnnoGrid.CanvasColor = System.Drawing.SystemColors.Control; this.expandableSplitter4.TabStop = false;
this.pannelAnnoGrid.Controls.Add(this.c1AnnotationGrid); //
this.pannelAnnoGrid.Dock = System.Windows.Forms.DockStyle.Left; // pannelAnnoGrid
this.pannelAnnoGrid.Location = new System.Drawing.Point(0, 0); //
this.pannelAnnoGrid.Name = "pannelAnnoGrid"; this.pannelAnnoGrid.CanvasColor = System.Drawing.SystemColors.Control;
this.pannelAnnoGrid.Size = new System.Drawing.Size(545, 325); this.pannelAnnoGrid.Controls.Add(this.dgAnnotations);
this.pannelAnnoGrid.Style.Alignment = System.Drawing.StringAlignment.Center; this.pannelAnnoGrid.Dock = System.Windows.Forms.DockStyle.Left;
this.pannelAnnoGrid.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; this.pannelAnnoGrid.Location = new System.Drawing.Point(0, 0);
this.pannelAnnoGrid.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; this.pannelAnnoGrid.Name = "pannelAnnoGrid";
this.pannelAnnoGrid.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.pannelAnnoGrid.Size = new System.Drawing.Size(545, 325);
this.pannelAnnoGrid.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; this.pannelAnnoGrid.Style.Alignment = System.Drawing.StringAlignment.Center;
this.pannelAnnoGrid.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; this.pannelAnnoGrid.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.pannelAnnoGrid.Style.GradientAngle = 90; this.pannelAnnoGrid.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
this.pannelAnnoGrid.TabIndex = 14; this.pannelAnnoGrid.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.pannelAnnoGrid.Text = "panelEx2"; this.pannelAnnoGrid.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.pannelAnnoGrid.ThemeAware = true; this.pannelAnnoGrid.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
// this.pannelAnnoGrid.Style.GradientAngle = 90;
// c1AnnotationGrid this.pannelAnnoGrid.TabIndex = 14;
// this.pannelAnnoGrid.Text = "panelEx2";
this.c1AnnotationGrid.AllowDragging = C1.Win.C1FlexGrid.AllowDraggingEnum.None; this.pannelAnnoGrid.ThemeAware = true;
this.c1AnnotationGrid.AllowEditing = false; //
this.c1AnnotationGrid.AutoGenerateColumns = false; // dgAnnotations
this.c1AnnotationGrid.BackColor = System.Drawing.Color.Transparent; //
this.c1AnnotationGrid.ColumnInfo = resources.GetString("c1AnnotationGrid.ColumnInfo"); this.dgAnnotations.AutoGenerateColumns = false;
this.c1AnnotationGrid.DataSource = this.itemAnnotationsBindingSource; this.dgAnnotations.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
this.c1AnnotationGrid.Dock = System.Windows.Forms.DockStyle.Fill; this.dgAnnotations.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
this.c1AnnotationGrid.ExtendLastCol = true; this.dgAnnotations.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.c1AnnotationGrid.FocusRect = C1.Win.C1FlexGrid.FocusRectEnum.Raised; this.dgAnnotations.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.c1AnnotationGrid.Location = new System.Drawing.Point(0, 0); this.myAnnotationTypeDataGridViewTextBoxColumn,
this.c1AnnotationGrid.Name = "c1AnnotationGrid"; this.dTSDataGridViewTextBoxColumn,
this.c1AnnotationGrid.Rows.Count = 1; this.userIDDataGridViewTextBoxColumn,
this.c1AnnotationGrid.Rows.DefaultSize = 19; this.searchTextDataGridViewTextBoxColumn});
this.c1AnnotationGrid.SelectionMode = C1.Win.C1FlexGrid.SelectionModeEnum.Row; this.dgAnnotations.DataSource = this.itemAnnotationsBindingSource;
this.c1AnnotationGrid.Size = new System.Drawing.Size(545, 325); dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.c1AnnotationGrid.StyleInfo = resources.GetString("c1AnnotationGrid.StyleInfo"); dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
this.c1AnnotationGrid.TabIndex = 0; dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.c1AnnotationGrid.EnterCell += new System.EventHandler(this.c1AnnotationGrid_EnterCell); dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText;
// dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
// itemAnnotationsBindingSource dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText;
// dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.itemAnnotationsBindingSource.DataSource = typeof(VEPROMS.CSLA.Library.ItemAnnotation); this.dgAnnotations.DefaultCellStyle = dataGridViewCellStyle3;
// this.dgAnnotations.Dock = System.Windows.Forms.DockStyle.Fill;
// AnnotationDetails this.dgAnnotations.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
// this.dgAnnotations.HighlightSelectedColumnHeaders = false;
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.dgAnnotations.Location = new System.Drawing.Point(0, 0);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.dgAnnotations.MultiSelect = false;
this.Controls.Add(this.pannelAnnoEdit); this.dgAnnotations.Name = "dgAnnotations";
this.Controls.Add(this.expandableSplitter4); this.dgAnnotations.RowHeadersVisible = false;
this.Controls.Add(this.pannelAnnoGrid); this.dgAnnotations.RowTemplate.Height = 24;
this.Name = "AnnotationDetails"; this.dgAnnotations.RowTemplate.ReadOnly = true;
this.Size = new System.Drawing.Size(1124, 325); this.dgAnnotations.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.pannelAnnoEdit.ResumeLayout(false); this.dgAnnotations.SelectAllSignVisible = false;
this.pannelAnnoEdit.PerformLayout(); this.dgAnnotations.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.panelAnnoEditBtns.ResumeLayout(false); this.dgAnnotations.Size = new System.Drawing.Size(545, 325);
this.pannelAnnoGrid.ResumeLayout(false); this.dgAnnotations.TabIndex = 1;
((System.ComponentModel.ISupportInitialize)(this.c1AnnotationGrid)).EndInit(); this.dgAnnotations.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgAnnotations_CellClick);
((System.ComponentModel.ISupportInitialize)(this.itemAnnotationsBindingSource)).EndInit(); //
this.ResumeLayout(false); // myAnnotationTypeDataGridViewTextBoxColumn
//
this.myAnnotationTypeDataGridViewTextBoxColumn.DataPropertyName = "MyAnnotationType";
this.myAnnotationTypeDataGridViewTextBoxColumn.HeaderText = "Type";
this.myAnnotationTypeDataGridViewTextBoxColumn.Name = "myAnnotationTypeDataGridViewTextBoxColumn";
this.myAnnotationTypeDataGridViewTextBoxColumn.Width = 65;
//
// dTSDataGridViewTextBoxColumn
//
this.dTSDataGridViewTextBoxColumn.DataPropertyName = "DTS";
this.dTSDataGridViewTextBoxColumn.HeaderText = "Date";
this.dTSDataGridViewTextBoxColumn.Name = "dTSDataGridViewTextBoxColumn";
this.dTSDataGridViewTextBoxColumn.Width = 63;
//
// userIDDataGridViewTextBoxColumn
//
this.userIDDataGridViewTextBoxColumn.DataPropertyName = "UserID";
this.userIDDataGridViewTextBoxColumn.HeaderText = "User";
this.userIDDataGridViewTextBoxColumn.Name = "userIDDataGridViewTextBoxColumn";
this.userIDDataGridViewTextBoxColumn.Width = 63;
//
// searchTextDataGridViewTextBoxColumn
//
this.searchTextDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.searchTextDataGridViewTextBoxColumn.DataPropertyName = "SearchText";
this.searchTextDataGridViewTextBoxColumn.HeaderText = "Description";
this.searchTextDataGridViewTextBoxColumn.Name = "searchTextDataGridViewTextBoxColumn";
//
// itemAnnotationsBindingSource
//
this.itemAnnotationsBindingSource.DataSource = typeof(VEPROMS.CSLA.Library.ItemAnnotation);
//
// AnnotationDetails
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.pannelAnnoEdit);
this.Controls.Add(this.expandableSplitter4);
this.Controls.Add(this.pannelAnnoGrid);
this.Name = "AnnotationDetails";
this.Size = new System.Drawing.Size(1124, 325);
this.pannelAnnoEdit.ResumeLayout(false);
this.pannelAnnoEdit.PerformLayout();
this.panelAnnoEditBtns.ResumeLayout(false);
this.pannelAnnoGrid.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgAnnotations)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.itemAnnotationsBindingSource)).EndInit();
this.ResumeLayout(false);
} }
@ -294,8 +341,12 @@ namespace Volian.Controls.Library
private DevComponents.DotNetBar.ButtonX btnRemoveAnnotation; private DevComponents.DotNetBar.ButtonX btnRemoveAnnotation;
private DevComponents.DotNetBar.ButtonX btnAddAnnotation; private DevComponents.DotNetBar.ButtonX btnAddAnnotation;
private DevComponents.DotNetBar.ExpandableSplitter expandableSplitter4; private DevComponents.DotNetBar.ExpandableSplitter expandableSplitter4;
private DevComponents.DotNetBar.PanelEx pannelAnnoGrid; private DevComponents.DotNetBar.PanelEx pannelAnnoGrid;
private C1.Win.C1FlexGrid.C1FlexGrid c1AnnotationGrid;
private System.Windows.Forms.BindingSource itemAnnotationsBindingSource; private System.Windows.Forms.BindingSource itemAnnotationsBindingSource;
private DevComponents.DotNetBar.Controls.DataGridViewX dgAnnotations;
private System.Windows.Forms.DataGridViewTextBoxColumn myAnnotationTypeDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn dTSDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn userIDDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn searchTextDataGridViewTextBoxColumn;
} }
} }

View File

@ -12,8 +12,11 @@ namespace Volian.Controls.Library
public partial class AnnotationDetails : UserControl public partial class AnnotationDetails : UserControl
{ {
#region Properties #region Properties
private ItemInfo _CurrentItem = null; private bool _LoadingAnnotation = false;
private AnnotationSearch _AnnotationSearch; private bool _LoadingGrid = false;
private ItemInfo _CurrentItem = null;
private DisplaySearch _AnnotationSearch;
private AnnotationInfoList _Annotations; private AnnotationInfoList _Annotations;
public AnnotationInfoList Annotations public AnnotationInfoList Annotations
@ -43,7 +46,7 @@ namespace Volian.Controls.Library
} }
_CurrentAnnotation = value; _CurrentAnnotation = value;
InitializeAnnotation(); InitializeAnnotation();
} }
} }
private bool _AnnotationDirty = false; private bool _AnnotationDirty = false;
@ -94,9 +97,10 @@ namespace Volian.Controls.Library
private bool _AddingAnnotation = false; private bool _AddingAnnotation = false;
private void btnAddAnnotation_Click(object sender, EventArgs e) private void btnAddAnnotation_Click(object sender, EventArgs e)
{ {
c1AnnotationGrid.Row = -1; dgAnnotations.ClearSelection();
CurrentAnnotation = null; CurrentAnnotation = null;
_AddingAnnotation = true; _AddingAnnotation = true;
rtxbComment.Focus();
} }
private void btnRemoveAnnotation_Click(object sender, EventArgs e) private void btnRemoveAnnotation_Click(object sender, EventArgs e)
@ -143,18 +147,16 @@ namespace Volian.Controls.Library
AnnotationDirty = true; AnnotationDirty = true;
} }
private bool _LoadingAnnotation = false; private void dgAnnotations_CellClick(object sender, DataGridViewCellEventArgs e)
private bool _LoadingGrid = false; {
private void c1AnnotationGrid_EnterCell(object sender, EventArgs e) if (!_LoadingGrid) // Only set the Current Annotation when not loading the grid
{ {
if (!_LoadingGrid) // Only set the Current Annotation when not loading the grid if ((_Annotations != null) && (dgAnnotations.Rows.Count > 0))
{ CurrentAnnotation = _Annotations[dgAnnotations.CurrentRow.Index];
if ((_Annotations != null) && (c1AnnotationGrid.Row > 0)) else
CurrentAnnotation = _Annotations[c1AnnotationGrid.Row - 1]; CurrentAnnotation = null;
else }
CurrentAnnotation = null; }
}
}
private void rtxbComment_TextChanged(object sender, EventArgs e) private void rtxbComment_TextChanged(object sender, EventArgs e)
{ {
@ -166,15 +168,17 @@ namespace Volian.Controls.Library
#region LoadControlData #region LoadControlData
public void SetupAnnotations(AnnotationSearch annotation) public void SetupAnnotations(DisplaySearch annosrch)
{ {
_AnnotationSearch = annotation; // reference the Annotation Search to update its lists _LoadingAnnotation = true;
_AnnotationSearch = annosrch; // reference the Annotation Search to update its lists
cbGridAnnoType.DisplayMember = "Name"; cbGridAnnoType.DisplayMember = "Name";
cbGridAnnoType.ValueMember = "TypeId"; cbGridAnnoType.ValueMember = "TypeId";
cbGridAnnoType.DataSource = AnnotationTypeInfoList.Get().Clone(); cbGridAnnoType.DataSource = AnnotationTypeInfoList.Get().Clone();
cbGridAnnoType.SelectedIndex = -1; //don't pre-select an annotation type cbGridAnnoType.SelectedIndex = -1; //don't pre-select an annotation type
} _LoadingAnnotation = false;
}
private void InitializeAnnotation() private void InitializeAnnotation()
{ {
@ -195,8 +199,8 @@ namespace Volian.Controls.Library
} }
_LoadingAnnotation = false; _LoadingAnnotation = false;
AnnotationDirty = false; AnnotationDirty = false;
if (!_LoadingGrid) if (!_LoadingGrid)
rtxbComment.Focus(); // Set the focus to the comment text rtxbComment.Focus(); // Set the focus to the comment text
} }
#endregion #endregion
@ -219,6 +223,7 @@ namespace Volian.Controls.Library
_LoadingGrid = true; _LoadingGrid = true;
_Annotations = (_CurrentItem == null) ? null : _CurrentItem.ItemAnnotations; _Annotations = (_CurrentItem == null) ? null : _CurrentItem.ItemAnnotations;
itemAnnotationsBindingSource.DataSource = _Annotations; itemAnnotationsBindingSource.DataSource = _Annotations;
dgAnnotations.Refresh();
if ((CurrentAnnotation == null || (_CurrentItem.ItemID != CurrentAnnotation.ItemID))) if ((CurrentAnnotation == null || (_CurrentItem.ItemID != CurrentAnnotation.ItemID)))
{ {
if (_Annotations != null && _Annotations.Count > 0) if (_Annotations != null && _Annotations.Count > 0)
@ -237,21 +242,23 @@ namespace Volian.Controls.Library
public void FindCurrentAnnotation() public void FindCurrentAnnotation()
{ {
int row = 0; int row = 0;
if (CurrentAnnotation != null) if (CurrentAnnotation != null)
{ {
if (_Annotations != null) if (_Annotations != null)
{ {
foreach (AnnotationInfo ai in _Annotations) foreach (AnnotationInfo ai in _Annotations)
{ {
if (ai.AnnotationID == CurrentAnnotation.AnnotationID) if (ai.AnnotationID == CurrentAnnotation.AnnotationID)
{ {
row = _Annotations.IndexOf(ai) + 1; row = _Annotations.IndexOf(ai);// +1;
break; break;
} }
} }
} dgAnnotations.Rows[row].Selected = true;
} if (!_LoadingGrid)
c1AnnotationGrid.Select(row, 0, true); // position to the corresponding grid row dgAnnotations.FirstDisplayedScrollingRowIndex = row;
}
}
} }
private void SaveAnnotation() private void SaveAnnotation()
@ -290,5 +297,6 @@ namespace Volian.Controls.Library
} }
#endregion #endregion
} }
} }

View File

@ -120,13 +120,7 @@
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<data name="c1AnnotationGrid.ColumnInfo" xml:space="preserve">
<value>18,1,0,0,0,95,Columns:0{Visible:False;} 1{Width:107;Name:"ErrorMessage";Caption:"ErrorMessage";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 2{Width:100;Name:"AnnotationID";Caption:"AnnotationID";Visible:False;AllowEditing:False;Style:"DataType:System.Int32;TextAlign:RightCenter;";} 3{Width:173;Name:"MyAnnotation";Caption:"MyAnnotation";Visible:False;AllowEditing:False;Style:"DataType:VEPROMS.CSLA.Library.Annotation;TextAlign:GeneralCenter;";} 4{Width:66;Name:"TypeID";Caption:"TypeID";Visible:False;AllowEditing:False;Style:"DataType:System.Int32;TextAlign:RightCenter;";} 5{Width:145;Name:"MyAnnotationType";Caption:"Type";AllowDragging:False;AllowEditing:False;Style:"DataType:VEPROMS.CSLA.Library.AnnotationType;TextAlign:GeneralCenter;";} 6{Width:66;Name:"RtfText";Caption:"RtfText";Visible:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 7{Width:50;Name:"DTS";Caption:"Date";AllowDragging:False;AllowEditing:False;Style:"Format:""d"";DataType:System.DateTime;TextAlign:LeftCenter;";} 8{Width:64;Name:"UserID";Caption:"User";AllowDragging:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 9{Width:91;Name:"SearchText";Caption:"Description";AllowDragging:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 10{Width:62;Name:"Config";Caption:"Config";Visible:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 11{Width:160;Name:"AnnotationType_Name";Caption:"AnnotationType_Name";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 12{Width:163;Name:"AnnotationType_Config";Caption:"AnnotationType_Config";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 13{Width:151;Name:"AnnotationType_DTS";Caption:"AnnotationType_DTS";Visible:False;AllowEditing:False;Style:"Format:""d"";DataType:System.DateTime;TextAlign:LeftCenter;";} 14{Width:166;Name:"AnnotationType_UserID";Caption:"AnnotationType_UserID";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 15{Width:123;Name:"HasBrokenRules";Caption:"HasBrokenRules";Visible:False;AllowEditing:False;Style:"DataType:VEPROMS.CSLA.Library.IVEHasBrokenRules;TextAlign:GeneralCenter;";} 16{Name:"BrokenRules";Caption:"BrokenRules";Visible:False;AllowEditing:False;Style:"DataType:Csla.Validation.BrokenRulesCollection;TextAlign:GeneralCenter;";} 17{Width:123;Name:"CurrentEditLevel";Caption:"CurrentEditLevel";Visible:False;AllowEditing:False;Style:"DataType:System.Int32;TextAlign:RightCenter;";} </value>
</data>
<metadata name="itemAnnotationsBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="itemAnnotationsBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>156, 17</value> <value>156, 17</value>
</metadata> </metadata>
<data name="c1AnnotationGrid.StyleInfo" xml:space="preserve">
<value>Normal{Font:Microsoft Sans Serif, 7.8pt;BackColor:Transparent;} Alternate{} Fixed{BackColor:Control;ForeColor:ControlText;Border:Raised,1,Black,Both;BackgroundImageLayout:Hide;} Highlight{BackColor:Highlight;ForeColor:HighlightText;} Focus{} Editor{} Search{BackColor:Highlight;ForeColor:HighlightText;} Frozen{BackColor:Beige;} NewRow{} EmptyArea{BackColor:Transparent;Border:Flat,1,ControlDarkDark,Both;} SelectedColumnHeader{} SelectedRowHeader{} GrandTotal{BackColor:Black;ForeColor:White;} Subtotal0{BackColor:ControlDarkDark;ForeColor:White;} Subtotal1{BackColor:ControlDarkDark;ForeColor:White;} Subtotal2{BackColor:ControlDarkDark;ForeColor:White;} Subtotal3{BackColor:ControlDarkDark;ForeColor:White;} Subtotal4{BackColor:ControlDarkDark;ForeColor:White;} Subtotal5{BackColor:ControlDarkDark;ForeColor:White;} </value>
</data>
</root> </root>

View File

@ -28,65 +28,66 @@ namespace Volian.Controls.Library
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
this.cbAnnoType = new DevComponents.DotNetBar.Controls.ComboBoxEx(); this.cbAnnoType = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.lbResults = new System.Windows.Forms.ListBox(); this.lbResults = new System.Windows.Forms.ListBox();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip(); this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip();
this.SuspendLayout(); this.SuspendLayout();
// //
// cbAnnoType // cbAnnoType
// //
this.cbAnnoType.DisplayMember = "Text"; this.cbAnnoType.DisplayMember = "Text";
this.cbAnnoType.Dock = System.Windows.Forms.DockStyle.Top; this.cbAnnoType.Dock = System.Windows.Forms.DockStyle.Top;
this.cbAnnoType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.cbAnnoType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.cbAnnoType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbAnnoType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbAnnoType.FormattingEnabled = true; this.cbAnnoType.FormattingEnabled = true;
this.cbAnnoType.ItemHeight = 17; this.cbAnnoType.ItemHeight = 17;
this.cbAnnoType.Location = new System.Drawing.Point(0, 0); this.cbAnnoType.Location = new System.Drawing.Point(0, 0);
this.cbAnnoType.Name = "cbAnnoType"; this.cbAnnoType.Name = "cbAnnoType";
this.cbAnnoType.Size = new System.Drawing.Size(239, 23); this.cbAnnoType.Size = new System.Drawing.Size(239, 23);
this.superTooltip1.SetSuperTooltip(this.cbAnnoType, new DevComponents.DotNetBar.SuperTooltipInfo("Select Annotation Search Type", "", "This drop down list contains the posible annotation types. When selected, a list" + this.superTooltip1.SetSuperTooltip(this.cbAnnoType, new DevComponents.DotNetBar.SuperTooltipInfo("Select Annotation Search Type", "", "This drop down list contains the posible annotation types. When selected, a list" +
" of the annotions of that type will be displayed below.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray)); " of the annotions of that type will be displayed below.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbAnnoType.TabIndex = 1; this.cbAnnoType.TabIndex = 1;
this.cbAnnoType.WatermarkBehavior = DevComponents.DotNetBar.eWatermarkBehavior.HideNonEmpty; this.cbAnnoType.WatermarkBehavior = DevComponents.DotNetBar.eWatermarkBehavior.HideNonEmpty;
this.cbAnnoType.WatermarkText = "Select Annotation Type"; this.cbAnnoType.WatermarkText = "Select Annotation Type";
this.cbAnnoType.SelectedValueChanged += new System.EventHandler(this.cbAnnoType_SelectedValueChanged); this.cbAnnoType.SelectedValueChanged += new System.EventHandler(this.cbAnnoType_SelectedValueChanged);
// //
// lbResults // lbResults
// //
this.lbResults.Dock = System.Windows.Forms.DockStyle.Fill; this.lbResults.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbResults.FormattingEnabled = true; this.lbResults.FormattingEnabled = true;
this.lbResults.HorizontalScrollbar = true; this.lbResults.HorizontalScrollbar = true;
this.lbResults.ItemHeight = 16; this.lbResults.ItemHeight = 16;
this.lbResults.Location = new System.Drawing.Point(0, 23); this.lbResults.Location = new System.Drawing.Point(0, 23);
this.lbResults.Name = "lbResults"; this.lbResults.Name = "lbResults";
this.lbResults.Size = new System.Drawing.Size(239, 372); this.lbResults.Size = new System.Drawing.Size(239, 372);
this.lbResults.TabIndex = 2; this.lbResults.TabIndex = 2;
this.lbResults.MouseMove += new System.Windows.Forms.MouseEventHandler(this.lbResults_MouseMove); this.lbResults.Visible = false;
this.lbResults.SelectedValueChanged += new System.EventHandler(this.lbResults_SelectedValueChanged); this.lbResults.MouseMove += new System.Windows.Forms.MouseEventHandler(this.lbResults_MouseMove);
// this.lbResults.SelectedValueChanged += new System.EventHandler(this.lbResults_SelectedValueChanged);
// superTooltip1 //
// // superTooltip1
this.superTooltip1.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; //
// this.superTooltip1.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
// AnnotationSearch //
// // AnnotationSearch
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.Controls.Add(this.lbResults); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.cbAnnoType); this.Controls.Add(this.lbResults);
this.Name = "AnnotationSearch"; this.Controls.Add(this.cbAnnoType);
this.Size = new System.Drawing.Size(239, 397); this.Name = "AnnotationSearch";
this.ResumeLayout(false); this.Size = new System.Drawing.Size(239, 397);
this.ResumeLayout(false);
} }
#endregion #endregion
private DevComponents.DotNetBar.Controls.ComboBoxEx cbAnnoType; private DevComponents.DotNetBar.Controls.ComboBoxEx cbAnnoType;
private System.Windows.Forms.ListBox lbResults; private System.Windows.Forms.ListBox lbResults;
private System.Windows.Forms.ToolTip toolTip1; private System.Windows.Forms.ToolTip toolTip1;
private DevComponents.DotNetBar.SuperTooltip superTooltip1; private DevComponents.DotNetBar.SuperTooltip superTooltip1;
} }
} }

View File

@ -35,32 +35,32 @@ namespace Volian.Controls.Library
#region Events #region Events
private void cbAnnoType_SelectedValueChanged(object sender, EventArgs e) private void cbAnnoType_SelectedValueChanged(object sender, EventArgs e)
{ {
UpdateAnnotationSearchResults(); UpdateAnnotationSearchResults();
} }
private void lbResults_SelectedValueChanged(object sender, EventArgs e) private void lbResults_SelectedValueChanged(object sender, EventArgs e)
{ {
if (!_LoadingList) if (!_LoadingList)
{ {
_AnnotationDetails.CurrentAnnotation = lbResults.SelectedValue as AnnotationInfo; _AnnotationDetails.CurrentAnnotation = lbResults.SelectedValue as AnnotationInfo;
if (_AnnotationDetails.CurrentAnnotation != null) if (_AnnotationDetails.CurrentAnnotation != null)
_TabControl.OpenItem(_AnnotationDetails.CurrentAnnotation.MyItem); // open the corresponding procedure text _TabControl.OpenItem(_AnnotationDetails.CurrentAnnotation.MyItem); // open the corresponding procedure text
_AnnotationDetails.FindCurrentAnnotation(); // position to corresponding row in annotation grid _AnnotationDetails.FindCurrentAnnotation(); // position to corresponding row in annotation grid
} }
} }
private int LastResultsMouseOverIndex = -1; private int LastResultsMouseOverIndex = -1;
private void lbResults_MouseMove(object sender, MouseEventArgs e) private void lbResults_MouseMove(object sender, MouseEventArgs e)
{ {
int ResultsMouseOverIndex = lbResults.IndexFromPoint(e.Location); int ResultsMouseOverIndex = lbResults.IndexFromPoint(e.Location);
if (ResultsMouseOverIndex != -1 && ResultsMouseOverIndex != LastResultsMouseOverIndex) if (ResultsMouseOverIndex != -1 && ResultsMouseOverIndex != LastResultsMouseOverIndex)
{ {
AnnotationInfo ai = lbResults.Items[ResultsMouseOverIndex] as AnnotationInfo; AnnotationInfo ai = lbResults.Items[ResultsMouseOverIndex] as AnnotationInfo;
toolTip1.SetToolTip(lbResults, ai.MyItem.Path); // display location of corresponding procedure text in a tooltip toolTip1.SetToolTip(lbResults, ai.MyItem.Path); // display location of corresponding procedure text in a tooltip
LastResultsMouseOverIndex = ResultsMouseOverIndex; LastResultsMouseOverIndex = ResultsMouseOverIndex;
} }
} }
#endregion #endregion
#region LoadControlData #region LoadControlData
@ -69,22 +69,22 @@ namespace Volian.Controls.Library
_AnnotationDetails = annotationDetails; _AnnotationDetails = annotationDetails;
cbAnnoType.DisplayMember = "Name"; cbAnnoType.DisplayMember = "Name";
cbAnnoType.DataSource = AnnotationTypeInfoList.Get(); cbAnnoType.DataSource = AnnotationTypeInfoList.Get();
lbResults.MouseMove += new MouseEventHandler(lbResults_MouseMove); lbResults.MouseMove += new MouseEventHandler(lbResults_MouseMove);
_TabControl = tc; _TabControl = tc;
} }
#endregion #endregion
#region VariousSupportMethods #region VariousSupportMethods
public void UpdateAnnotationSearchResults() public void UpdateAnnotationSearchResults()
{ {
AnnotationTypeInfo ati = cbAnnoType.SelectedValue as AnnotationTypeInfo; AnnotationTypeInfo ati = cbAnnoType.SelectedValue as AnnotationTypeInfo;
_LoadingList = true; _LoadingList = true;
lbResults.DisplayMember = "SearchText"; lbResults.DisplayMember = "SearchText";
lbResults.DataSource = ati.AnnotationTypeAnnotations; lbResults.DataSource = ati.AnnotationTypeAnnotations;
lbResults.SelectedIndex = -1; lbResults.SelectedIndex = -1;
LastResultsMouseOverIndex = -1; LastResultsMouseOverIndex = -1;
_LoadingList = false; _LoadingList = false;
} }
#endregion #endregion
} }