VEPROMS_UI / remove BouncyCastle
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using VEPROMS.Properties;
|
||||
@@ -11,8 +6,6 @@ using DescriptiveEnum;
|
||||
using DevComponents.DotNetBar;
|
||||
using DevComponents.DotNetBar.Controls;
|
||||
using Volian.Controls.Library;
|
||||
using System.Xml;
|
||||
using Csla;
|
||||
|
||||
namespace VEPROMS
|
||||
{
|
||||
@@ -20,7 +13,6 @@ namespace VEPROMS
|
||||
{
|
||||
private bool _Initializing = false;
|
||||
private string _DefaultFormatName = null;
|
||||
//private string _DefaultPagination = null;
|
||||
private string _DefaultWatermark = null;
|
||||
private string _DefaultChgBarType = null;
|
||||
private string _DefaultChgBarLoc = null;
|
||||
@@ -28,21 +20,18 @@ namespace VEPROMS
|
||||
private string _DefaultChgBarUsrMsg1 = null;
|
||||
private string _DefaultChgBarUsrMsg2 = null;
|
||||
private string _DefaultFormatColumns = null;
|
||||
private bool _DefaultDisableDuplex = false;
|
||||
private ProcedureConfig _ProcedureConfig;
|
||||
private StepTabRibbon _MyStepTabRibbon;
|
||||
private readonly ProcedureConfig _ProcedureConfig;
|
||||
private readonly StepTabRibbon _MyStepTabRibbon;
|
||||
|
||||
public frmProcedureProperties(ProcedureConfig procedureConfig)
|
||||
{
|
||||
_ProcedureConfig = procedureConfig;
|
||||
_Initializing = true;
|
||||
InitializeComponent();
|
||||
btnGeneral.PerformClick(); // always start with General tab or button
|
||||
_Initializing = false;
|
||||
// build the title bar caption
|
||||
//this.Text = string.Format("{0} {1} Properties", procedureConfig.Number, procedureConfig.Title);
|
||||
btnGeneral.PerformClick(); // always start with General tab or button
|
||||
ItemInfo itmInfo = ItemInfo.Get(_ProcedureConfig.MyProcedure.ItemID);
|
||||
this.Text = string.Format("{0} {1} Properties", itmInfo.DisplayNumber, itmInfo.DisplayText);
|
||||
// build the title bar caption
|
||||
Text = $"{itmInfo.DisplayNumber} {itmInfo.DisplayText} Properties";
|
||||
ppProcTitleStpRTB.Font = ppProcTitleStpRTB.FormatFont = new System.Drawing.Font("Microsoft Sans Serif", 10F);
|
||||
ppProcTitleStpRTB.FieldToEdit = E_FieldToEdit.Text;
|
||||
ppProcTitleStpRTB.BorderStyle = BorderStyle.Fixed3D;
|
||||
@@ -54,12 +43,11 @@ namespace VEPROMS
|
||||
ppProcNumStpRTB.MyItemInfo = itmInfo;
|
||||
ppProcNumStpRTB.RefreshDisplay(true);
|
||||
|
||||
_MyStepTabRibbon = new StepTabRibbon();
|
||||
//_MyStepTabRibbon.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
//_MyStepTabRibbon.Location = new System.Drawing.Point(0, 0);
|
||||
_MyStepTabRibbon.Name = "displayTabRibbon1";
|
||||
_MyStepTabRibbon.Visible = false;
|
||||
//defaultSettingsVisiblity();
|
||||
_MyStepTabRibbon = new StepTabRibbon
|
||||
{
|
||||
Name = "displayTabRibbon1",
|
||||
Visible = false
|
||||
};
|
||||
}
|
||||
|
||||
private void ppBtnOK_Click(object sender, EventArgs e)
|
||||
@@ -99,7 +87,7 @@ namespace VEPROMS
|
||||
}
|
||||
}
|
||||
DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
Close();
|
||||
}
|
||||
public void SaveText(StepRTB myStepRTB)
|
||||
{
|
||||
@@ -118,8 +106,8 @@ namespace VEPROMS
|
||||
{
|
||||
procedureConfigBindingSource.CancelEdit();
|
||||
_ProcedureConfig.MyProcedure.MyProcedureInfo.CreateEnhanced = false;
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
this.Close();
|
||||
DialogResult = DialogResult.Cancel;
|
||||
Close();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -156,10 +144,6 @@ namespace VEPROMS
|
||||
if (!(_DefaultChgBarUsrMsg2.Equals("")))
|
||||
ppLblChgBarUserMsgTwoDefault.Text = string.Format("({0})", _DefaultChgBarUsrMsg2);
|
||||
|
||||
// Get the default Print Pagination
|
||||
//_DefaultPagination = _ProcedureConfig.Print_Pagination.ToString();
|
||||
//SetupDefault(EnumDescConverter.GetEnumDescription(_ProcedureConfig.Print_Pagination), ppLblPaginationDefault, ppCmbxPagination);
|
||||
|
||||
// Get the default Watermark
|
||||
_DefaultWatermark = _ProcedureConfig.Print_Watermark.ToString();
|
||||
SetupDefault(EnumDescConverter.GetEnumDescription(_ProcedureConfig.Print_Watermark), ppLblWatermarkDefault, ppCmbxWatermark);
|
||||
@@ -178,8 +162,6 @@ namespace VEPROMS
|
||||
_Initializing = true;
|
||||
procedureConfigBindingSource.DataSource = _ProcedureConfig;
|
||||
|
||||
//formatInfoListBindingSource.DataSource = FormatInfoList.Get();
|
||||
|
||||
ppCmbxFormat.DataSource = null;
|
||||
ppCmbxFormat.DisplayMember = "FullName";
|
||||
ppCmbxFormat.ValueMember = "FullName";
|
||||
@@ -195,7 +177,7 @@ namespace VEPROMS
|
||||
// Get the saved settings for this user
|
||||
//
|
||||
// This setting tells us if we should display the default values on this property page
|
||||
ppCbShwDefSettings.Checked = (Settings.Default["ShowDefaultProcedureProp"] != null) ? Settings.Default.ShowDefaultProcedureProp : false;
|
||||
ppCbShwDefSettings.Checked = (Settings.Default["ShowDefaultProcedureProp"] != null) && Settings.Default.ShowDefaultProcedureProp;
|
||||
|
||||
// Get the User's property page style "PropPageStyle" (this is a system wide user setting)
|
||||
// 1 - Button Dialog (default)
|
||||
@@ -204,7 +186,7 @@ namespace VEPROMS
|
||||
{
|
||||
tcProcProp.TabsVisible = true;
|
||||
panProcBtns.Visible = false;
|
||||
this.Width -= panProcBtns.Width;
|
||||
Width -= panProcBtns.Width;
|
||||
}
|
||||
|
||||
// Get the default values for the property page information
|
||||
@@ -230,11 +212,6 @@ namespace VEPROMS
|
||||
ppCmbxChangeBarType.ValueMember = "EValue";
|
||||
ppCmbxChangeBarType.SelectedIndex = -1;
|
||||
|
||||
//ppCmbxPagination.DataSource = EnumDetail<PrintPagination>.Details();
|
||||
//ppCmbxPagination.DisplayMember = "Description";
|
||||
//ppCmbxPagination.ValueMember = "EValue";
|
||||
//ppCmbxPagination.SelectedIndex = -1;
|
||||
|
||||
ppCmbxWatermark.DataSource = EnumDetail<PrintWatermark>.Details();
|
||||
ppCmbxWatermark.DisplayMember = "Description";
|
||||
ppCmbxWatermark.ValueMember = "EValue";
|
||||
@@ -247,8 +224,7 @@ namespace VEPROMS
|
||||
|
||||
// the only time the create enhanced checkbox is visisble is if this is a 'New' procedure in a set that is the 'Source'.
|
||||
cbEnhanced.Visible = false;
|
||||
DocVersionConfig dvc = _ProcedureConfig.MyProcedure.MyProcedureInfo.MyDocVersion.MyConfig as DocVersionConfig;
|
||||
if (_ProcedureConfig.CreatingNew && dvc != null && dvc.MyEnhancedDocuments != null && dvc.MyEnhancedDocuments.Count > 0 && dvc.MyEnhancedDocuments[0].Type != 0)
|
||||
if (_ProcedureConfig.CreatingNew && _ProcedureConfig.MyProcedure.MyProcedureInfo.MyDocVersion.MyConfig is DocVersionConfig dvc && dvc.MyEnhancedDocuments != null && dvc.MyEnhancedDocuments.Count > 0 && dvc.MyEnhancedDocuments[0].Type != 0)
|
||||
cbEnhanced.Visible = true;
|
||||
cbNotIncludeInMerged.Checked = _ProcedureConfig.Print_NotInMergeAll;
|
||||
_Initializing = false;
|
||||
@@ -262,10 +238,7 @@ namespace VEPROMS
|
||||
/// </summary>
|
||||
/// <param name="sender">object</param>
|
||||
/// <param name="e">EventArgs</param>
|
||||
private void btnGeneral_Click(object sender, EventArgs e)
|
||||
{
|
||||
ProcessButtonClick(tiGeneral, btnGeneral);
|
||||
}
|
||||
private void btnGeneral_Click(object sender, EventArgs e) => ProcessButtonClick(tiGeneral, btnGeneral);
|
||||
|
||||
/// <summary>
|
||||
/// Selection in Default Column Mode combo box changed.
|
||||
@@ -278,14 +251,6 @@ namespace VEPROMS
|
||||
{
|
||||
FormatColumns fc = (FormatColumns)Enum.Parse(typeof(FormatColumns), _DefaultFormatColumns);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxStpEditorCols, fc, ppBtnDefEdCols, ppLblStpEditorColsDefault);
|
||||
//if ((ppCmbxStpEditorCols.SelectedIndex != -1) && ppCmbxStpEditorCols.SelectedValue.Equals(fc))
|
||||
//{
|
||||
// ppBtnDefEdCols.Focus();
|
||||
// ppBtnDefEdCols.PerformClick();
|
||||
//}
|
||||
//ppBtnDefEdCols.Visible = ppCmbxStpEditorCols.SelectedValue != null;
|
||||
//ppLblStpEditorColsDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefEdCols.Visible;
|
||||
//tcpGeneral.Focus();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -304,22 +269,7 @@ namespace VEPROMS
|
||||
if (_InitialIndex < -1) _InitialIndex = ppCmbxFormat.SelectedIndex; // save the current format selection (happens here when current section is set to the default format)
|
||||
}
|
||||
|
||||
private void ppBtnDefaultFmt_Click(object sender, EventArgs e)
|
||||
{
|
||||
ppCmbxFormat.SelectedIndex = -1; //reset to the default Format setting
|
||||
//tcpFormatSettings.Focus();
|
||||
}
|
||||
|
||||
// Commented out as part of code change C2017-004. this also makes it consistent with section properties
|
||||
/// <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)
|
||||
//{
|
||||
// ProcessCmbxSelectedValueChange(ppCmbxFormat, _DefaultFormatName, ppBtnDefaultFmt, ppLblFormatDefault);
|
||||
//}
|
||||
private void ppBtnDefaultFmt_Click(object sender, EventArgs e) => ppCmbxFormat.SelectedIndex = -1; //reset to the default Format setting
|
||||
|
||||
/// <summary>
|
||||
/// Enable or disable the user specified change bar options base on the type
|
||||
@@ -327,14 +277,6 @@ namespace VEPROMS
|
||||
/// </summary>
|
||||
private void setEnabledUserSpecifiedChgBarCombos(PrintChangeBar pcb)
|
||||
{
|
||||
//ppGpbxUserSpecCB.Enabled =
|
||||
//ppCmbxChgBarPos.Enabled =
|
||||
//ppCmbxChgBarTxtType.Enabled =
|
||||
//ppBtnDefaultCbPos.Enabled =
|
||||
//ppBtnDefCbTxtTyp.Enabled = (ppCmbxChangeBarType.SelectedValue != null &&
|
||||
// ppCmbxChangeBarType.SelectedValue.Equals(ProcedureConfig.PrintChangeBar.WithUserSpecified)) ||
|
||||
// (ppCmbxChangeBarType.SelectedValue == null && pcb.Equals(DocVersionConfig.PrintChangeBar.WithUserSpecified));
|
||||
|
||||
ppGpbxUserSpecCB.Enabled = (ppCmbxChangeBarType.SelectedValue != null &&
|
||||
ppCmbxChangeBarType.SelectedValue.Equals(PrintChangeBar.WithUserSpecified)) ||
|
||||
(ppCmbxChangeBarType.SelectedValue == null && pcb.Equals(PrintChangeBar.WithUserSpecified));
|
||||
@@ -353,7 +295,6 @@ namespace VEPROMS
|
||||
PrintChangeBar pcb = (PrintChangeBar)Enum.Parse(typeof(PrintChangeBar), _DefaultChgBarType);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxChangeBarType, pcb, ppBtnDefaultChgBar, ppLblChangeBarTypeDefault);
|
||||
setEnabledUserSpecifiedChgBarCombos(pcb);
|
||||
//tcpFormatSettings.Focus();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -369,12 +310,9 @@ namespace VEPROMS
|
||||
// Get the parent setting
|
||||
PrintChangeBar pcb = (PrintChangeBar)Enum.Parse(typeof(PrintChangeBar), _DefaultChgBarType);
|
||||
// Compare parent setting with current setting
|
||||
//_Initializing = true;
|
||||
if (pcb != _ProcedureConfig.Print_ChangeBar)
|
||||
_ProcedureConfig.Print_ChangeBar = pcb; // this will force a database update (write)
|
||||
ppCmbxChangeBarType.SelectedIndex = -1; //reset to the default Change Bar setting
|
||||
//_Initializing = false;
|
||||
//tcpFormatSettings.Focus();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -388,7 +326,6 @@ namespace VEPROMS
|
||||
{
|
||||
PrintChangeBarLoc cbl = (PrintChangeBarLoc)Enum.Parse(typeof(PrintChangeBarLoc), _DefaultChgBarLoc);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxChgBarPos, cbl, ppBtnDefaultCbPos, ppLblChgBarPosDefault);
|
||||
//tcpFormatSettings.Focus();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -407,7 +344,6 @@ namespace VEPROMS
|
||||
if (cbl != _ProcedureConfig.Print_ChangeBarLoc)
|
||||
_ProcedureConfig.Print_ChangeBarLoc = cbl; // this will force a database update (write)
|
||||
ppCmbxChgBarPos.SelectedIndex = -1; //reset to the default Change Bar Position setting
|
||||
//tcpFormatSettings.Focus();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -422,7 +358,6 @@ namespace VEPROMS
|
||||
PrintChangeBarText cbt = (PrintChangeBarText)Enum.Parse(typeof(PrintChangeBarText), _DefaultChgBarText);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxChgBarTxtType, cbt, ppBtnDefCbTxtTyp, ppLblChgBarTxtTypeDefault);
|
||||
setEnabledUserSpecifiedChgBarText();
|
||||
//tcpFormatSettings.Focus();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -441,7 +376,6 @@ namespace VEPROMS
|
||||
if (cbt != _ProcedureConfig.Print_ChangeBarText)
|
||||
_ProcedureConfig.Print_ChangeBarText = cbt; // this will force a database update (write)
|
||||
ppCmbxChgBarTxtType.SelectedIndex = -1; //reset to the default Change Bar Text Type setting
|
||||
//tcpFormatSettings.Focus();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -450,13 +384,6 @@ namespace VEPROMS
|
||||
/// </summary>
|
||||
private void setEnabledUserSpecifiedChgBarText()
|
||||
{
|
||||
//ppGpbxUserSpecTxt.Enabled =
|
||||
//ppTxbxChangeBarUserMsgOne.Enabled =
|
||||
//ppTxbxChgBarUserMsgTwo.Enabled =
|
||||
//ppBtnDefCbTxt1.Enabled =
|
||||
//ppBtnDefCbTxt2.Enabled = (ppCmbxChgBarTxtType.SelectedValue != null &&
|
||||
//ppCmbxChgBarTxtType.SelectedValue.Equals(ProcedureConfig.PrintChangeBarText.UserDef));
|
||||
|
||||
// This string is used to check against our default setting to see if User Defined Changebar Text is active
|
||||
string decUserDef = PrintChangeBarText.UserDef.ToString();
|
||||
|
||||
@@ -475,43 +402,7 @@ namespace VEPROMS
|
||||
/// </summary>
|
||||
/// <param name="sender">object</param>
|
||||
/// <param name="e">EventArgs</param>
|
||||
private void btnOutputStngs_Click(object sender, EventArgs e)
|
||||
{
|
||||
ProcessButtonClick(tiOutputStngs, btnOutputStngs);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Selection in Pagination combo box changed.
|
||||
/// </summary>
|
||||
/// <param name="sender">object</param>
|
||||
/// <param name="e">EventArgs</param>
|
||||
//private void ppCmbxPagination_SelectedValueChanged(object sender, EventArgs e)
|
||||
//{
|
||||
// if (!_Initializing)
|
||||
// {
|
||||
// PrintPagination pgtn = (PrintPagination)Enum.Parse(typeof(PrintPagination), _DefaultPagination);
|
||||
// ProcessCmbxSelectionEnumChanged(ppCmbxPagination, pgtn, ppBtnDefPagination, ppLblPaginationDefault);
|
||||
// //tcpOutputSettings.Focus();
|
||||
// }
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// Reset to the parent setting.
|
||||
/// Find the parent setting and assign it to _ProcedureConfig.Print_Pagination.
|
||||
/// This will force the database to be updated.
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
//private void ppBtnDefPagination_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// // Get the parent setting
|
||||
// PrintPagination pgtn = (PrintPagination)Enum.Parse(typeof(PrintPagination), _DefaultPagination);
|
||||
// // Compare parent setting with current setting
|
||||
// if (pgtn != _ProcedureConfig.Print_Pagination)
|
||||
// _ProcedureConfig.Print_Pagination = pgtn; // this will force a database update (write)
|
||||
// ppCmbxPagination.SelectedIndex = -1; //reset to the default Pagination setting
|
||||
// //tcpOutputSettings.Focus();
|
||||
//}
|
||||
private void btnOutputStngs_Click(object sender, EventArgs e) => ProcessButtonClick(tiOutputStngs, btnOutputStngs);
|
||||
|
||||
/// <summary>
|
||||
/// Selection in Watermark combo box changed.
|
||||
@@ -524,7 +415,6 @@ namespace VEPROMS
|
||||
{
|
||||
PrintWatermark wtr = (PrintWatermark)Enum.Parse(typeof(PrintWatermark), _DefaultWatermark);
|
||||
ProcessCmbxSelectionEnumChanged(ppCmbxWatermark, wtr, ppBtnDefWatermark, ppLblWatermarkDefault);
|
||||
//tcpOutputSettings.Focus();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -547,19 +437,6 @@ namespace VEPROMS
|
||||
|
||||
#endregion
|
||||
|
||||
#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 btnVwStngs_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// ProcessButtonClick(tiViewStngs, btnVwStngs);
|
||||
//}
|
||||
#endregion
|
||||
|
||||
#region Generic functions used on this property page
|
||||
|
||||
/// <summary>
|
||||
@@ -570,7 +447,6 @@ namespace VEPROMS
|
||||
ppLblDefSettingsInfo.Visible = ppCbShwDefSettings.Checked;
|
||||
|
||||
ppLblWatermarkDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefWatermark.Visible;
|
||||
//ppLblPaginationDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefPagination.Visible;
|
||||
ppLblStpEditorColsDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefEdCols.Visible;
|
||||
ppLblFormatDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultFmt.Visible;
|
||||
ppLblChangeBarTypeDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultChgBar.Visible;
|
||||
@@ -603,7 +479,6 @@ namespace VEPROMS
|
||||
btnGeneral.Checked = false;
|
||||
btnFmtStngs.Checked = false;
|
||||
btnOutputStngs.Checked = false;
|
||||
//btnVwStngs.Checked = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -616,7 +491,6 @@ namespace VEPROMS
|
||||
private void tabpage_Enter(object sender, EventArgs e)
|
||||
{
|
||||
// Show or hide the labels containing the default values
|
||||
//if (!_Initializing)
|
||||
defaultSettingsVisiblity();
|
||||
}
|
||||
|
||||
@@ -658,36 +532,11 @@ namespace VEPROMS
|
||||
button.Visible = (cmbx.SelectedValue != null);
|
||||
deflabel.Visible = ppCbShwDefSettings.Checked && button.Visible;
|
||||
}
|
||||
// Commented out as part of code change C2017-004 - select default format on dropdown
|
||||
///// <summary>
|
||||
///// Process a change in the combo box selection
|
||||
///// </summary>
|
||||
///// <param name="cmbx">Combo Box Name</param>
|
||||
///// <param name="defstr">string containing default text</param>
|
||||
///// <param name="button">button to reset to default value</param>
|
||||
///// <param name="deflabel">label containing the default</param>
|
||||
//private void ProcessCmbxSelectedValueChange(ComboBoxEx cmbx, string defstr, ButtonX button, Label deflabel)
|
||||
//{
|
||||
// if ((cmbx.SelectedIndex != -1) && defstr != null && defstr.Equals(cmbx.SelectedValue))
|
||||
// {
|
||||
// button.Visible = true;
|
||||
// button.Focus();
|
||||
// button.PerformClick();
|
||||
// }
|
||||
// button.Visible = cmbx.SelectedValue != null;
|
||||
// deflabel.Visible = ppCbShwDefSettings.Checked && button.Visible;
|
||||
//}
|
||||
#endregion
|
||||
|
||||
private void ppProcTitleStpRTB_Enter(object sender, EventArgs e)
|
||||
{
|
||||
_MyStepTabRibbon.MyStepRTB = ppProcTitleStpRTB;
|
||||
}
|
||||
private void ppProcTitleStpRTB_Enter(object sender, EventArgs e) => _MyStepTabRibbon.MyStepRTB = ppProcTitleStpRTB;
|
||||
|
||||
private void ppProcNumStpRTB_Enter(object sender, EventArgs e)
|
||||
{
|
||||
_MyStepTabRibbon.MyStepRTB = ppProcNumStpRTB;
|
||||
}
|
||||
private void ppProcNumStpRTB_Enter(object sender, EventArgs e) => _MyStepTabRibbon.MyStepRTB = ppProcNumStpRTB;
|
||||
|
||||
private void ppBtnDefCbTxt1_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -698,9 +547,7 @@ namespace VEPROMS
|
||||
_ProcedureConfig.Print_UserCBMess1 = _DefaultChgBarUsrMsg1;
|
||||
ppLblChgBarUserMsgOneDefault.Visible = false;
|
||||
ppBtnDefCbTxt1.Visible = false;
|
||||
//tcpFormatSettings.Focus();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void ppBtnDefCbTxt2_Click(object sender, EventArgs e)
|
||||
@@ -712,7 +559,6 @@ namespace VEPROMS
|
||||
_ProcedureConfig.Print_UserCBMess2 = _DefaultChgBarUsrMsg2;
|
||||
ppLblChgBarUserMsgTwoDefault.Visible = false;
|
||||
ppBtnDefCbTxt2.Visible = false;
|
||||
//tcpFormatSettings.Focus();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -723,7 +569,6 @@ namespace VEPROMS
|
||||
if (fc != _ProcedureConfig.Format_Columns)
|
||||
_ProcedureConfig.Format_Columns = fc; // this will force a database update (write)
|
||||
ppCmbxStpEditorCols.SelectedIndex = -1; //reset to the default
|
||||
//tcpGeneral.Focus();
|
||||
}
|
||||
|
||||
private void ppBtnDefWatermark_Click_1(object sender, EventArgs e)
|
||||
@@ -734,30 +579,23 @@ namespace VEPROMS
|
||||
if (wtr != _ProcedureConfig.Print_Watermark)
|
||||
_ProcedureConfig.Print_Watermark = wtr; // this will force a database update (write)
|
||||
ppCmbxWatermark.SelectedIndex = -1;
|
||||
//tcpOutputSettings.Focus();
|
||||
}
|
||||
|
||||
|
||||
private void ppTxbxChangeBarUserMsgOne_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
ppBtnDefCbTxt1.Visible = ((ppTxbxChangeBarUserMsgOne.Text != null) && !ppTxbxChangeBarUserMsgOne.Text.Equals(_DefaultChgBarUsrMsg1));
|
||||
ppBtnDefCbTxt1.Visible = (ppTxbxChangeBarUserMsgOne.Text != null) && !ppTxbxChangeBarUserMsgOne.Text.Equals(_DefaultChgBarUsrMsg1);
|
||||
ppLblChgBarUserMsgOneDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefCbTxt1.Visible;
|
||||
//tcpOutputSettings.Focus();
|
||||
}
|
||||
|
||||
private void ppTxbxChgBarUserMsgTwo_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
ppBtnDefCbTxt2.Visible = ((ppTxbxChgBarUserMsgTwo.Text != null) && !ppTxbxChgBarUserMsgTwo.Text.Equals(_DefaultChgBarUsrMsg2));
|
||||
ppLblChgBarUserMsgTwoDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefCbTxt2.Visible;
|
||||
//tcpOutputSettings.Focus();
|
||||
}
|
||||
|
||||
|
||||
private void frmProcedureProperties_Shown(object sender, EventArgs e)
|
||||
{
|
||||
ppProcNumStpRTB.Focus();
|
||||
|
||||
}
|
||||
private void frmProcedureProperties_Shown(object sender, EventArgs e) => ppProcNumStpRTB.Focus();
|
||||
|
||||
private void ppCmbxFormat_DropDown(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user