This commit is contained in:
2010-08-12 16:05:52 +00:00
parent f91459b9f0
commit 0849b002b4
18 changed files with 231 additions and 212 deletions

View File

@@ -6,6 +6,7 @@ using System.Data;
using System.Text;
using System.Windows.Forms;
using VEPROMS.CSLA.Library;
using Volian.Base.Library;
namespace Volian.Controls.Library
{
@@ -307,10 +308,10 @@ namespace Volian.Controls.Library
}
#endregion
private void AnnotationDetails_Resize(object sender, EventArgs e)
{
vlnStackTrace.ShowStackLocal(string.Format("Resize - Height = {0}",Height),3,4);
//vlnStackTrace.ShowStack(string.Format("Resize - Height = {0}", Height));
}
//private void AnnotationDetails_Resize(object sender, EventArgs e)
//{
// vlnStackTrace.ShowStackLocal(string.Format("Resize - Height = {0}", Height), 3, 4);
// //vlnStackTrace.ShowStack(string.Format("Resize - Height = {0}", Height));
//}
}
}

View File

@@ -344,9 +344,10 @@ namespace Volian.Controls.Library
try
{
_MyDSOFramer.Save();
LBDocumentClass doc = new LBDocumentClass(_MyDSOFramer.ActiveDocument);
MyDSOFile.FullName = GetReflectiveProperty(_MyDSOFramer.ActiveDocument, "FullName");
MyDSOFile.SaveFile(doc.Length, doc.Ascii);
// These are handled in the method above
//LBDocumentClass doc = new LBDocumentClass(_MyDSOFramer.ActiveDocument);
//MyDSOFile.FullName = GetReflectiveProperty(_MyDSOFramer.ActiveDocument, "FullName");
//MyDSOFile.SaveFile(doc.Length, doc.Ascii);
}
catch (Exception ex)
{

View File

@@ -10,6 +10,7 @@ using VEPROMS.CSLA.Library;
using XYPlots;
using DevComponents.DotNetBar;
using System.Text.RegularExpressions;
using Volian.Base.Library;
//using VG;
namespace Volian.Controls.Library
@@ -672,24 +673,6 @@ namespace Volian.Controls.Library
return outstr;
}
private static string _TemporaryFolder = null;
public static string TemporaryFolder
{
get
{
if (_TemporaryFolder == null)
{
// This will create a Temp\VE-PROMS folder in the LocalSettings Folder.
//XP - C:\Documents and Settings\{user}\Local Settings\Application Data\Temp\VE-PROMS
//Vista - C:\Users\{user}\AppData\Local\Temp\VE-PROMS
_TemporaryFolder = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\Temp";
if (!Directory.Exists(TemporaryFolder)) Directory.CreateDirectory(TemporaryFolder);
_TemporaryFolder += @"\VE-PROMS";
if (!Directory.Exists(TemporaryFolder)) Directory.CreateDirectory(TemporaryFolder);
}
return _TemporaryFolder;
}
}
/// <summary>
/// Keep trying to delete the given file until successful OR until MaxMinutes has elasped

View File

@@ -8,6 +8,7 @@ using System.Windows.Forms;
using VEPROMS.CSLA.Library;
using DevComponents.DotNetBar;
using DevComponents.AdvTree;
using Volian.Base.Library;
namespace Volian.Controls.Library
{
@@ -946,7 +947,7 @@ namespace Volian.Controls.Library
{
Cursor = savcursor;
}
if (vlnStackTrace.DebugMode)
if (VlnSettings.DebugMode)
MessageBox.Show(string.Format("{0} Milliseconds", TimeSpan.FromTicks(DateTime.Now.Ticks - start.Ticks).TotalMilliseconds));
}

View File

@@ -7,6 +7,7 @@ using System.Windows.Forms;
using VEPROMS.CSLA.Library;
using System.Drawing;
using System.Text.RegularExpressions;
using Volian.Base.Library;
namespace Volian.Controls.Library
{
@@ -232,7 +233,7 @@ namespace Volian.Controls.Library
private void SetupStepPanel()
{
this.BackColorChanged += new EventHandler(StepPanel_BackColorChanged);
if (vlnStackTrace.DebugMode)
if (VlnSettings.DebugMode)
{
_InactiveColor = Color.Linen;
_TabColor = Color.Beige;

View File

@@ -9,6 +9,7 @@ using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using VEPROMS.CSLA.Library;
using Volian.Base.Library;
namespace Volian.Controls.Library
{
@@ -208,7 +209,7 @@ namespace Volian.Controls.Library
Font = formatFont;
else
{
if (vlnStackTrace.DebugMode)
if (VlnSettings.DebugMode)
Font = new Font(_MyFontFamily == null ? formatFont.FontFamily : _MyFontFamily, formatFont.Size, formatFont.Style);
else
Font = new Font("Bookman Old Style", formatFont.Size, formatFont.Style);