Kill the process after closing the main app window. The process was remaining in memory for an extended period of time after it was closed. This removes it from memory immediately.
Added "Fix Symbol Font" button Don't open a DSOFramer if it fails - Fixed B2012-267. Replace an automatic function with a manual function to fix Symbol fonts. Fixed B2012-259.
This commit is contained in:
15
PROMS/VEPROMS User Interface/frmVEPROMS.Designer.cs
generated
15
PROMS/VEPROMS User Interface/frmVEPROMS.Designer.cs
generated
@@ -72,6 +72,7 @@ namespace VEPROMS
|
||||
this.lblItemID = new DevComponents.DotNetBar.LabelItem();
|
||||
this.lblResolution = new DevComponents.DotNetBar.LabelItem();
|
||||
this.btnEditItem = new DevComponents.DotNetBar.ButtonItem();
|
||||
this.btnFixMSWord = new DevComponents.DotNetBar.ButtonItem();
|
||||
this.epAnnotations = new DevComponents.DotNetBar.ExpandablePanel();
|
||||
this.ctrlAnnotationDetails = new Volian.Controls.Library.AnnotationDetails();
|
||||
this.btnAnnoDetailsPushPin = new DevComponents.DotNetBar.ButtonX();
|
||||
@@ -483,7 +484,8 @@ namespace VEPROMS
|
||||
this.btnItemInfo,
|
||||
this.lblItemID,
|
||||
this.lblResolution,
|
||||
this.btnEditItem});
|
||||
this.btnEditItem,
|
||||
this.btnFixMSWord});
|
||||
this.bottomBar.Location = new System.Drawing.Point(5, 552);
|
||||
this.bottomBar.Name = "bottomBar";
|
||||
this.bottomBar.Size = new System.Drawing.Size(1185, 29);
|
||||
@@ -561,6 +563,14 @@ namespace VEPROMS
|
||||
this.btnItemInfo.Text = "ItemInfo";
|
||||
this.btnItemInfo.Click += new System.EventHandler(this.btnItemInfo_Click);
|
||||
//
|
||||
// btnFixMSWord
|
||||
//
|
||||
this.btnFixMSWord.ForeColor = System.Drawing.Color.Black;
|
||||
this.btnFixMSWord.Name = "btnFixMSWord";
|
||||
this.btnFixMSWord.Text = "Fix Symbol Fonts";
|
||||
this.btnFixMSWord.Click += new System.EventHandler(this.btnFixMSWord_Click);
|
||||
this.btnFixMSWord.Visible = false;
|
||||
//
|
||||
// lblItemID
|
||||
//
|
||||
this.lblItemID.Name = "lblItemID";
|
||||
@@ -1375,6 +1385,7 @@ namespace VEPROMS
|
||||
this.Text = "Proms";
|
||||
this.Load += new System.EventHandler(this.frmVEPROMS_Load);
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmVEPROMS_FormClosing);
|
||||
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(frmVEPROMS_FormClosed);
|
||||
this.Resize += new System.EventHandler(this.frmVEPROMS_Resize);
|
||||
((System.ComponentModel.ISupportInitialize)(this.bottomBar)).EndInit();
|
||||
this.bottomBar.ResumeLayout(false);
|
||||
@@ -1401,7 +1412,6 @@ namespace VEPROMS
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevComponents.DotNetBar.RibbonControl ribbonControl1;
|
||||
@@ -1503,6 +1513,7 @@ namespace VEPROMS
|
||||
private Volian.Controls.Library.DisplaySearch displaySearch1;
|
||||
private DevComponents.DotNetBar.LabelItem lblEditView;
|
||||
private DevComponents.DotNetBar.ButtonItem btnItemInfo;
|
||||
private DevComponents.DotNetBar.ButtonItem btnFixMSWord;
|
||||
private Volian.Controls.Library.DisplayBookMarks displayBookMarks;
|
||||
private DevComponents.DotNetBar.LabelItem lblLocked;
|
||||
private DevComponents.DotNetBar.ButtonItem btnShortCuts;
|
||||
|
@@ -487,6 +487,13 @@ namespace VEPROMS
|
||||
Volian.Base.Library.DebugPagination.Close();
|
||||
Volian.Base.Library.DebugText.Close();
|
||||
}
|
||||
void frmVEPROMS_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
|
||||
{
|
||||
// RHM 20121010
|
||||
// Something was causing the process to remain in memory for an extended period of time
|
||||
// after printing procedures. The following lines kills the process immediately.
|
||||
System.Diagnostics.Process.GetCurrentProcess().Kill();
|
||||
}
|
||||
private void frmVEPROMS_Load(object sender, EventArgs e)
|
||||
{
|
||||
//string debugMode = ConfigurationManager.AppSettings["Debug"];
|
||||
@@ -605,10 +612,6 @@ namespace VEPROMS
|
||||
if (ranAuto)
|
||||
{
|
||||
this.Close();
|
||||
// Something was causing the process to remain in memory for an extended period of time
|
||||
// after printing procedures. The following lines kills the process immediately.
|
||||
System.Diagnostics.Process myProc = System.Diagnostics.Process.GetCurrentProcess();
|
||||
myProc.Kill();
|
||||
}
|
||||
}
|
||||
private bool _RunNext = false;
|
||||
@@ -1389,6 +1392,7 @@ namespace VEPROMS
|
||||
private StepRTB _LastStepRTB = null;
|
||||
private void tc_ItemSelectedChanged(object sender, ItemSelectedChangedEventArgs args)
|
||||
{
|
||||
btnFixMSWord.Visible = (args != null && ( args.MyItemInfo != null && args.MyEditItem == null));
|
||||
if (_LastStepRTB != null && !_LastStepRTB.Disposing && !_LastStepRTB.Closed)
|
||||
_LastStepRTB.EditModeChanged -= new StepRTBEvent(_LastStepRTB_EditModeChanged);
|
||||
_LastStepRTB = args != null && args.MyEditItem != null ? args.MyEditItem.MyStepRTB : null;
|
||||
@@ -1803,6 +1807,19 @@ namespace VEPROMS
|
||||
else
|
||||
MessageBox.Show("Select Item First", "Item not selected", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
}
|
||||
private void btnFixMSWord_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (tc.SelectedDisplayTabItem != null && tc.SelectedDisplayTabItem.MyDSOTabPanel != null)
|
||||
{
|
||||
string btnText = btnFixMSWord.Text;
|
||||
btnFixMSWord.FixedSize = btnFixMSWord.Size;
|
||||
btnFixMSWord.Text = "Processing ...";
|
||||
this.Cursor = Cursors.WaitCursor;
|
||||
tc.SelectedDisplayTabItem.MyDSOTabPanel.FixSymbolCharacters();
|
||||
btnFixMSWord.Text = btnText;
|
||||
this.Cursor = Cursors.Default;
|
||||
}
|
||||
}
|
||||
|
||||
private void epAnnotations_Resize(object sender, EventArgs e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user