This commit is contained in:
Jsj 2008-03-05 21:31:57 +00:00
parent e3842e54b2
commit f30af1b77c
5 changed files with 1375 additions and 1268 deletions

View File

@ -11,225 +11,225 @@ using DevComponents.DotNetBar;
namespace VEPROMS
{
public partial class frmSectionProperties : DevComponents.DotNetBar.Office2007Form
{
private string _DefaultFormatName = null;
private bool _Initializing;
private SectionConfig _SectionConfig;
public partial class frmSectionProperties : DevComponents.DotNetBar.Office2007Form
{
private string _DefaultFormatName = null;
private bool _Initializing;
private SectionConfig _SectionConfig;
public frmSectionProperties(SectionConfig sectionConfig)
{
_SectionConfig = sectionConfig;
InitializeComponent();
btnGeneral.PerformClick(); // always start with General tab or button
if (sectionConfig.Number.Length > 0)
this.Text = string.Format("{0} {1} Properties", sectionConfig.Number, sectionConfig.Title);
else
this.Text = string.Format("{0} Properties", sectionConfig.Title);
}
public frmSectionProperties(SectionConfig sectionConfig)
{
_SectionConfig = sectionConfig;
InitializeComponent();
btnGeneral.PerformClick(); // always start with General tab or button
if (sectionConfig.Number.Length > 0)
this.Text = string.Format("{0} {1} Properties", sectionConfig.Number, sectionConfig.Title);
else
this.Text = string.Format("{0} Properties", sectionConfig.Title);
}
private void btnFlderPropOK_Click(object sender, EventArgs e)
{
sectionConfigBindingSource.EndEdit();
// Save Default settings for User
//
// Save whether we should display the default values on this property page
Settings.Default.ShowDefaultSectionProp = ppCbShwDefSettings.Checked;
Settings.Default.Save();
DialogResult = DialogResult.OK;
this.Close();
}
private void btnFlderPropOK_Click(object sender, EventArgs e)
{
sectionConfigBindingSource.EndEdit();
// Save Default settings for User
//
// Save whether we should display the default values on this property page
Settings.Default.ShowDefaultSectionProp = ppCbShwDefSettings.Checked;
Settings.Default.Save();
DialogResult = DialogResult.OK;
this.Close();
}
private void btnFldrPropCancel_Click(object sender, EventArgs e)
{
sectionConfigBindingSource.CancelEdit();
this.Close();
}
private void btnFldrPropCancel_Click(object sender, EventArgs e)
{
sectionConfigBindingSource.CancelEdit();
this.Close();
}
/// <summary>
/// Use the ParentLookup to grab the default values
/// - set the watermark property (where applicable) of the control with that value
/// - set the default setting labels with that value
/// ** the default setting labels appear when the Show Default Values checkbox is checked by the user.
/// </summary>
private void FindDefaultValues()
{
_SectionConfig.ParentLookup = true;
// Get the default format name
_DefaultFormatName = _SectionConfig.DefaultFormatSelection;
if (_DefaultFormatName != null && !(_DefaultFormatName.Equals("")))
{
ppLblFormatDefault.Text = string.Format("({0})", _DefaultFormatName);
ppCmbxFormat.WatermarkText = string.Format("{0}", _DefaultFormatName);
}
_SectionConfig.ParentLookup = false;
}
/// <summary>
/// Use the ParentLookup to grab the default values
/// - set the watermark property (where applicable) of the control with that value
/// - set the default setting labels with that value
/// ** the default setting labels appear when the Show Default Values checkbox is checked by the user.
/// </summary>
private void FindDefaultValues()
{
_SectionConfig.ParentLookup = true;
// Get the default format name
_DefaultFormatName = _SectionConfig.DefaultFormatSelection;
if (_DefaultFormatName != null && !(_DefaultFormatName.Equals("")))
{
ppLblFormatDefault.Text = string.Format("({0})", _DefaultFormatName);
ppCmbxFormat.WatermarkText = string.Format("{0}", _DefaultFormatName);
}
_SectionConfig.ParentLookup = false;
}
private void frmSectionProperties_Load(object sender, EventArgs e)
{
_Initializing = true;
sectionConfigBindingSource.DataSource = _SectionConfig;
private void frmSectionProperties_Load(object sender, EventArgs e)
{
_Initializing = true;
sectionConfigBindingSource.DataSource = _SectionConfig;
formatInfoListBindingSource.DataSource = FormatInfoList.Get();
formatInfoListBindingSource.DataSource = FormatInfoList.Get();
// Get the saved settings for this user
//
// Get setting telling us whether to display the default values on this property page
ppCbShwDefSettings.Checked = (Settings.Default["ShowDefaultSectionProp"] != null) ? Settings.Default.ShowDefaultSectionProp : false;
// Get the saved settings for this user
//
// Get setting telling us whether to display the default values on this property page
ppCbShwDefSettings.Checked = (Settings.Default["ShowDefaultSectionProp"] != null) ? Settings.Default.ShowDefaultSectionProp : false;
// Get the User's property page style "PropPageStyle" (this is a system wide user setting)
// 1 - Button Dialog (default)
// 2 - Tab Dialog
if ((int)Settings.Default["PropPageStyle"] == (int)PropPgStyle.Tab)
{
tcSectionProp.TabsVisible = true;
panSectBtns.Visible = false;
this.Width -= panSectBtns.Width;
}
// Get the User's property page style "PropPageStyle" (this is a system wide user setting)
// 1 - Button Dialog (default)
// 2 - Tab Dialog
if ((int)Settings.Default["PropPageStyle"] == (int)PropPgStyle.Tab)
{
tcSectionProp.TabsVisible = true;
panSectBtns.Visible = false;
this.Width -= panSectBtns.Width;
}
// Get the default values for the property page information
FindDefaultValues();
// Get the default values for the property page information
FindDefaultValues();
ppCmbxSectPagination.DataSource = EnumDetail<SectionConfig.SectionPagination>.Details();
ppCmbxSectPagination.DisplayMember = "Description";
ppCmbxSectPagination.ValueMember = "EValue";
ppCmbxSectPagination.DataSource = EnumDetail<SectionConfig.SectionPagination>.Details();
ppCmbxSectPagination.DisplayMember = "Description";
ppCmbxSectPagination.ValueMember = "EValue";
ppCmbxNumColumns.DataSource = EnumDetail<SectionConfig.SectionColumnMode>.Details();
ppCmbxNumColumns.DisplayMember = "Description";
ppCmbxNumColumns.ValueMember = "EValue";
ppCmbxNumColumns.DataSource = EnumDetail<SectionConfig.SectionColumnMode>.Details();
ppCmbxNumColumns.DisplayMember = "Description";
ppCmbxNumColumns.ValueMember = "EValue";
_Initializing = false;
}
_Initializing = false;
}
#region General tab
#region General tab
/// <summary>
/// This is the General button used on the button interface design
/// </summary>
/// <param name="sender">object</param>
/// <param name="e">EventArgs</param>
private void btnGeneral_Click(object sender, EventArgs e)
{
ProcessButtonClick(tiGeneral, btnGeneral);
}
/// <summary>
/// This is the General button used on the button interface design
/// </summary>
/// <param name="sender">object</param>
/// <param name="e">EventArgs</param>
private void btnGeneral_Click(object sender, EventArgs e)
{
ProcessButtonClick(tiGeneral, btnGeneral);
}
#endregion
#endregion
#region Format tab
#region Format tab
/// <summary>
/// This is the Format button used on the button interface design
/// </summary>
/// <param name="sender">object</param>
/// <param name="e">EventArgs</param>
private void btnFormat_Click(object sender, EventArgs e)
{
ProcessButtonClick(tiFormat, btnFormat);
}
/// <summary>
/// This is the Format button used on the button interface design
/// </summary>
/// <param name="sender">object</param>
/// <param name="e">EventArgs</param>
private void btnFormat_Click(object sender, EventArgs e)
{
ProcessButtonClick(tiFormat, btnFormat);
}
/// <summary>
/// Selection in Format combo box changed.
/// </summary>
/// <param name="sender">object</param>
/// <param name="e">EventArgs</param>
private void ppCmbxFormat_SelectedValueChanged(object sender, EventArgs e)
{
if ((ppCmbxFormat.SelectedIndex != -1) && _DefaultFormatName.Equals(ppCmbxFormat.SelectedValue))
{
ppBtnDefaultFmt.Focus();
ppBtnDefaultFmt.PerformClick();
}
ppBtnDefaultFmt.Visible = (ppCmbxFormat.SelectedValue != null);
ppLblFormatDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultFmt.Visible;
}
/// <summary>
/// Selection in Format combo box changed.
/// </summary>
/// <param name="sender">object</param>
/// <param name="e">EventArgs</param>
private void ppCmbxFormat_SelectedValueChanged(object sender, EventArgs e)
{
if ((ppCmbxFormat.SelectedIndex != -1) && _DefaultFormatName != null && _DefaultFormatName.Equals(ppCmbxFormat.SelectedValue))
{
ppBtnDefaultFmt.Focus();
ppBtnDefaultFmt.PerformClick();
}
ppBtnDefaultFmt.Visible = (ppCmbxFormat.SelectedValue != null);
ppLblFormatDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultFmt.Visible;
}
private void ppBtnDefaultFmt_Click(object sender, EventArgs e)
{
ppCmbxFormat.SelectedIndex = -1; //reset to the default Format setting
}
private void ppBtnDefaultFmt_Click(object sender, EventArgs e)
{
ppCmbxFormat.SelectedIndex = -1; //reset to the default Format setting
}
#endregion
#endregion
#region Library Document tab
#region Library Document tab
/// <summary>
/// This is the Library Document button used on the button interface design
/// </summary>
/// <param name="sender">object</param>
/// <param name="e">EventArgs</param>
private void btnLibDocs_Click(object sender, EventArgs e)
{
ProcessButtonClick(tiLibDoc, btnLibDocs);
}
/// <summary>
/// This is the Library Document button used on the button interface design
/// </summary>
/// <param name="sender">object</param>
/// <param name="e">EventArgs</param>
private void btnLibDocs_Click(object sender, EventArgs e)
{
ProcessButtonClick(tiLibDoc, btnLibDocs);
}
#endregion
#endregion
#region View Settings tab
#region View Settings tab
/// <summary>
/// This is the View Settings button used on the button interface design
/// </summary>
/// <param name="sender">object</param>
/// <param name="e">EventArgs</param>
private void btnViewStngs_Click(object sender, EventArgs e)
{
ProcessButtonClick(tiViewStnns, btnViewStngs);
}
/// <summary>
/// This is the View Settings button used on the button interface design
/// </summary>
/// <param name="sender">object</param>
/// <param name="e">EventArgs</param>
private void btnViewStngs_Click(object sender, EventArgs e)
{
ProcessButtonClick(tiViewStnns, btnViewStngs);
}
#endregion
#endregion
#region Generic functions used on this property page
#region Generic functions used on this property page
/// <summary>
/// Determines what labels (showing default values) are visable on the property pages
/// </summary>
private void defaultSettingsVisiblity()
{
ppLblDefSettingsInfo.Visible = ppCbShwDefSettings.Checked;
ppLblFormatDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultFmt.Visible;
}
/// <summary>
/// Determines what labels (showing default values) are visable on the property pages
/// </summary>
private void defaultSettingsVisiblity()
{
ppLblDefSettingsInfo.Visible = ppCbShwDefSettings.Checked;
ppLblFormatDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultFmt.Visible;
}
/// <summary>
/// For the Button Interface property page style, when a button is selected (pressed),
/// it will remain in the checked state even when a different button is selected. Thus
/// we must clear the checked state of the buttons when a button is selected, then set
/// the newly selected button's state to checked.
/// </summary>
private void ClearAllCheckedButtons()
{
btnGeneral.Checked = false;
btnFormat.Checked = false;
btnLibDocs.Checked = false;
btnViewStngs.Checked = false;
}
/// <summary>
/// For the Button Interface property page style, when a button is selected (pressed),
/// it will remain in the checked state even when a different button is selected. Thus
/// we must clear the checked state of the buttons when a button is selected, then set
/// the newly selected button's state to checked.
/// </summary>
private void ClearAllCheckedButtons()
{
btnGeneral.Checked = false;
btnFormat.Checked = false;
btnLibDocs.Checked = false;
btnViewStngs.Checked = false;
}
/// <summary>
/// Select the corresponding tab and set the button's state to checked
/// </summary>
/// <param name="tab">Property Page Tab</param>
/// <param name="button">Corresponding Property Page Button</param>
private void ProcessButtonClick(TabItem tab, ButtonX button)
{
ClearAllCheckedButtons();
tcSectionProp.SelectedTab = tab;
button.Checked = true;
}
/// <summary>
/// Select the corresponding tab and set the button's state to checked
/// </summary>
/// <param name="tab">Property Page Tab</param>
/// <param name="button">Corresponding Property Page Button</param>
private void ProcessButtonClick(TabItem tab, ButtonX button)
{
ClearAllCheckedButtons();
tcSectionProp.SelectedTab = tab;
button.Checked = true;
}
/// <summary>
/// This is a generic Enter Event function for use with all of the property page tabs.
/// Found that the visiblity value of buttons is not recorded until the property page in which it resides is diplayed.
/// Thus we need to call defaultSettingVisiblity() to check and set visiblity states.
/// </summary>
/// <param name="sender"> type object</param>
/// <param name="e">type EventArgs</param>
private void tabpage_Enter(object sender, EventArgs e)
{
// Show or hide the labels containing the default values
if (!_Initializing)
defaultSettingsVisiblity();
}
/// <summary>
/// This is a generic Enter Event function for use with all of the property page tabs.
/// Found that the visiblity value of buttons is not recorded until the property page in which it resides is diplayed.
/// Thus we need to call defaultSettingVisiblity() to check and set visiblity states.
/// </summary>
/// <param name="sender"> type object</param>
/// <param name="e">type EventArgs</param>
private void tabpage_Enter(object sender, EventArgs e)
{
// Show or hide the labels containing the default values
if (!_Initializing)
defaultSettingsVisiblity();
}
#endregion
}
#endregion
}
}

File diff suppressed because it is too large Load Diff

View File

@ -58,12 +58,6 @@ namespace VEPROMS
tv.NodeProperties += new Volian.Controls.Library.vlnTreeViewEvent(tv_NodeProperties);
_CommentTitleBckColor = epComments.TitleStyle.BackColor1.Color;
epComments.Expanded = false;
// TODO: load previously set bookmarks
btnPrevPos.Enabled = false;
btnClrBookMrks.Enabled = false;
btnRmvCurBookMrk.Enabled = false;
lbxBookMarks.Enabled = false;
_PrevBookMark = null;
infoPanel.Expanded = false;
}
@ -90,10 +84,37 @@ namespace VEPROMS
if (Settings.Default["Size"] != null) this.Size = Settings.Default.Size;
ShutDownRibbons();
_MyMRIList = MostRecentItemList.GetMRILst((System.Collections.Specialized.StringCollection)(Properties.Settings.Default["MRIList"]));
_MyBookMarks = MostRecentItemList.GetMRILst((System.Collections.Specialized.StringCollection)(Properties.Settings.Default["BookMarks"]));
SetupMRU();
SetupBookMarks();
SetupAnnotations();
}
private void SetupAnnotations()
{
cbAnnoType.DataSource = AnnotationTypeInfoList.Get();
cbAnnoType.DisplayMember = "Name";
lbResults.MouseMove += new MouseEventHandler(lbResults_MouseMove);
}
#region MRU
private MostRecentItemList _MyMRIList;
private MostRecentItemList _MyBookMarks;
private void SetupBookMarks()
{
// TODO: load previously set bookmarks
lbxBookMarks.SelectedValueChanged += new EventHandler(lbxBookMarks_SelectedValueChanged);
RefreshBookMarkData();
btnPrevPos.Enabled = false;
//lbxBookMarks.Enabled = false;
_PrevBookMark = null;
}
void lbxBookMarks_SelectedValueChanged(object sender, EventArgs e)
{
btnRmvCurBookMrk.Enabled = (lbxBookMarks.SelectedIndex >= 0);
}
private void SetupMRU()
{
icRecentDocs.SubItems.Clear();
@ -139,6 +160,7 @@ namespace VEPROMS
private void SaveMRU()
{
Properties.Settings.Default.MRIList = _MyMRIList.ToSettings();
Properties.Settings.Default.BookMarks = _MyBookMarks.ToSettings();
Properties.Settings.Default.Save();
}
#endregion
@ -738,12 +760,12 @@ namespace VEPROMS
/// <param name="e"></param>
private void btnPrevPos_Click(object sender, EventArgs e)
{
if (_PrevBookMark != null)
{
VETreeNode jumpToHere = _PrevBookMark; // save current previous
btnSetBookMrk_Click(sender, e); // save current as the new previous
tv.SelectedNode = jumpToHere; // jump to the saved previous
}
//if (_PrevBookMark != null)
//{
// VETreeNode jumpToHere = _PrevBookMark; // save current previous
// btnSetBookMrk_Click(sender, e); // save current as the new previous
// tv.SelectedNode = jumpToHere; // jump to the saved previous
//}
}
/// <summary>
@ -753,12 +775,22 @@ namespace VEPROMS
/// <param name="e"></param>
private void btnClrBookMrks_Click(object sender, EventArgs e)
{
lbxBookMarks.Items.Clear();
lbxBookMarks.Enabled = false;
btnPrevPos.Enabled = false;
btnClrBookMrks.Enabled = false;
btnRmvCurBookMrk.Enabled = false;
_PrevBookMark = null;
_MyBookMarks.Clear();
RefreshBookMarkData();
//lbxBookMarks.Items.Clear();
//lbxBookMarks.Enabled = false;
//btnPrevPos.Enabled = false;
//btnClrBookMrks.Enabled = false;
//btnRmvCurBookMrk.Enabled = false;
//_PrevBookMark = null;
}
private void RefreshBookMarkData()
{
lbxBookMarks.DataSource = null;
lbxBookMarks.DataSource = _MyBookMarks;
lbxBookMarks.DisplayMember = "MenuTitle";
btnClrBookMrks.Enabled = (lbxBookMarks.Items.Count > 0);
}
/// <summary>
@ -768,26 +800,28 @@ namespace VEPROMS
/// <param name="e"></param>
private void btnRmvCurBookMrk_Click(object sender, EventArgs e)
{
lbxBookMarks.Items.RemoveAt(lbxBookMarks.SelectedIndex);
if (lbxBookMarks.Items.Count == 0)
{
lbxBookMarks.Enabled = false;
btnPrevPos.Enabled = false;
btnClrBookMrks.Enabled = false;
btnRmvCurBookMrk.Enabled = false;
_PrevBookMark = null;
}
_MyBookMarks.RemoveAt(lbxBookMarks.SelectedIndex);
RefreshBookMarkData();
// lbxBookMarks.Items.RemoveAt(lbxBookMarks.SelectedIndex);
// if (lbxBookMarks.Items.Count == 0)
// {
// //lbxBookMarks.Enabled = false;
// btnPrevPos.Enabled = false;
// btnClrBookMrks.Enabled = (lbxBookMarks.Items.Count > 0);
// //btnRmvCurBookMrk.Enabled = (lbxBookMarks.SelectedIndex >= 0);
// _PrevBookMark = null;
// }
}
/// <summary>
/// Adds the given tree node to the list of bookmarks
/// </summary>
/// <param name="bkmrk"></param>
private void AddToBookMarkList(VETreeNode bkmrk)
{
if (!(lbxBookMarks.Items.Contains(bkmrk)))
lbxBookMarks.Items.Add(bkmrk);
}
//private void AddToBookMarkList(VETreeNode bkmrk)
//{
// if (!(lbxBookMarks.Items.Contains(bkmrk)))
// lbxBookMarks.Items.Add(bkmrk);
//}
/// <summary>
/// Set Bookmark button on the Information pannel
@ -796,26 +830,18 @@ namespace VEPROMS
/// <param name="e"></param>
private void btnSetBookMrk_Click(object sender, EventArgs e)
{
VETreeNode tn = (VETreeNode)(tv.SelectedNode);
AddToBookMarkList(tn);
_PrevBookMark = tn;
lbxBookMarks.Enabled = true;
btnPrevPos.Enabled = true;
btnClrBookMrks.Enabled = true;
btnRmvCurBookMrk.Enabled = true;
DisplayTabPanel dtp = ((DisplayTabItem)tc.SelectedTab).MyTabPanel;
_MyBookMarks.Add(dtp.SelectedItem.MyItem);
RefreshBookMarkData();
//VETreeNode tn = (VETreeNode)(tv.SelectedNode);
//AddToBookMarkList(tn);
//_PrevBookMark = tn;
//lbxBookMarks.Enabled = true;
//btnPrevPos.Enabled = true;
//btnClrBookMrks.Enabled = true;
//btnRmvCurBookMrk.Enabled = true;
}
/// <summary>
/// Bookmarks List item double click event
/// Jump to slected bookmark
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void lbxBookMarks_DoubleClick(object sender, EventArgs e)
{
if (lbxBookMarks.SelectedItem != null)
tv.SelectedNode = (VETreeNode)lbxBookMarks.SelectedItem;
}
#endregion
#region DisplayPanel
@ -1161,5 +1187,45 @@ namespace VEPROMS
displayRO.MyRTB = dtp.MyPanel.DisplayItemSelected.MyDisplayRTB;
displayRO.CurROLink = args.RoUsageid; // this is wrong - use for now.
}
private bool _LoadingList = false;
private void cbAnnoType_SelectedValueChanged(object sender, EventArgs e)
{
AnnotationTypeInfo ati = cbAnnoType.SelectedValue as AnnotationTypeInfo;
_LoadingList = true;
lbResults.DataSource = ati.AnnotationTypeAnnotations;
lbResults.DisplayMember = "SearchText";
lbResults.SelectedIndex = -1;
LastResultsMouseOverIndex = -1;
_LoadingList = false;
}
private int LastResultsMouseOverIndex=-1;
void lbResults_MouseMove(object sender, MouseEventArgs e)
{
int ResultsMouseOverIndex = lbResults.IndexFromPoint(e.Location);
if (ResultsMouseOverIndex != -1 && ResultsMouseOverIndex != LastResultsMouseOverIndex)
{
AnnotationInfo ai = lbResults.Items[ResultsMouseOverIndex] as AnnotationInfo;
toolTip1.SetToolTip(lbResults, ai.MyItem.Path);
LastResultsMouseOverIndex = ResultsMouseOverIndex;
}
}
private void lbResults_SelectedValueChanged(object sender, EventArgs e)
{
if (!_LoadingList)
{
AnnotationInfo ai = lbResults.SelectedValue as AnnotationInfo;
tc.OpenItem(ai.MyItem);
}
}
private void lbxBookMarks_Click(object sender, EventArgs e)
{
MostRecentItem itm = lbxBookMarks.SelectedValue as MostRecentItem;
tc.OpenItem(itm.MyItem);
}
}
}

View File

@ -128,6 +128,9 @@
cHBwcHd3d3ezPnd3B3AHdwB3d3ezPnd3d3d3d3d3d3ezPnd3d3d3d3d3d3ezPnd3d3d3d3d3d3ezPg==
</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="btnChgTyp.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
@ -759,9 +762,6 @@
bFkILv1JUUyMWgDrxVLnzhXMLQAAAABJRU5ErkJggg==
</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="btnInsPgBrk.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
@ -1056,9 +1056,6 @@
Bj7Ytu3MNM0z2vf7fTpku91iyG+I+Vlp8+f1t3/G/0p4HPgGBbHOq7wkrakAAAAASUVORK5CYII=
</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="btnExit2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
@ -3640,7 +3637,7 @@
<value>156, 17</value>
</metadata>
<data name="c1CommentGrid.ColumnInfo" xml:space="preserve">
<value>5,0,0,0,0,85,Columns:0{Width:127;Name:"MyAnnotationType";Caption:"Type";Style:"TextAlign:GeneralCenter;";} 1{Width:39;Name:"DTS";Caption:"Date";Style:"Format:"d";DataType:System.DateTime;TextAlign:LeftCenter;";} 2{Width:55;Name:"UserID";Caption:"User";Style:"DataType:System.String;TextAlign:LeftCenter;";} 3{Name:"BrokenRules";Caption:"BrokenRules";Visible:False;AllowEditing:False;Style:"TextAlign:GeneralCenter;";} 4{Width:82;Name:"SearchText";Caption:"Description";Style:"DataType:System.String;TextAlign:LeftCenter;";} </value>
<value>5,0,0,0,0,100,Columns:0{Width:127;Name:"MyAnnotationType";Caption:"Type";Style:"TextAlign:GeneralCenter;";} 1{Width:39;Name:"DTS";Caption:"Date";Style:"Format:""d"";DataType:System.DateTime;TextAlign:LeftCenter;";} 2{Width:55;Name:"UserID";Caption:"User";Style:"DataType:System.String;TextAlign:LeftCenter;";} 3{Name:"BrokenRules";Caption:"BrokenRules";Visible:False;AllowEditing:False;Style:"TextAlign:GeneralCenter;";} 4{Width:82;Name:"SearchText";Caption:"Description";Style:"DataType:System.String;TextAlign:LeftCenter;";} </value>
</data>
<data name="c1CommentGrid.StyleInfo" xml:space="preserve">
<value>Normal{Font:Microsoft Sans Serif, 8pt;} Alternate{} Fixed{BackColor:Control;ForeColor:ControlText;Border:Flat,1,ControlDark,Both;BackgroundImageLayout:Hide;} Highlight{BackColor:Highlight;ForeColor:HighlightText;} Focus{} Editor{} Search{BackColor:Highlight;ForeColor:HighlightText;} Frozen{BackColor:Beige;} NewRow{} EmptyArea{BackColor:AppWorkspace;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>
@ -3675,6 +3672,9 @@
F5viAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>402, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>41</value>
</metadata>

View File

@ -603,7 +603,7 @@ namespace VEPROMS
/// <param name="deflabel">label containing the default</param>
private void ProcessCmbxSelectedValueChange(ComboBoxEx cmbx, string defstr, ButtonX button, Label deflabel)
{
if ((cmbx.SelectedIndex != -1) && defstr.Equals(cmbx.SelectedValue))
if ((cmbx.SelectedIndex != -1) && defstr != null && defstr.Equals(cmbx.SelectedValue))
{
button.Focus();
button.PerformClick();