public frmList(clsSupport objSupport, clsTCBase objTCBase, Form objParent, string Caption, DataView DataSource, int Position, bool AllowUpdate, string KeyField) : base(objSupport, "frmList", objTCBase, objParent) { KeyUp += Form_KeyUp; Closing += frmList_Closing; Load += frmList_Load; InitializeComponent(); if ((Caption != null)) { this.Text = Caption; } mRegistryKey = string.Format("{0}\\{1} Settings\\List Settings", mTCBase.RegistryKey, mTCBase.ActiveForm.Name); mKeyField = KeyField; this.Icon = mTCBase.ActiveForm.Icon; this.dgList.DataSource = DataSource; this.Text = "Unfiltered"; if ((DataSource.RowFilter != null) && DataSource.RowFilter != bpeNullString) { this.Text = "RowFilter: " + DataSource.RowFilter; } this.Text += string.Format(" ({0:#,##0} Rows)", DataSource.Count); this.dgList.ReadOnly = !AllowUpdate; this.dgList.CurrentCell = this.dgList[0, Position]; this.dgList.CurrentRow.Selected = true; mTCBase.ListChanged += tcDataView_ListChanged; }
protected override void Dispose(bool Disposing) { try { if (bDisposed) { return; } if (Disposing) { //Object is being disposed, not finalized. //It is safe to access other objects (other than the base object) only from inside this block. Trace("Disposing: " + mMyTraceID, trcOption.trcMemory | trcOption.trcSupport); if ((components != null)) { components.Dispose(); } } } catch (Exception ex) { throw; } finally { base.Dispose(Disposing); mSupport = null; bDisposed = true; } }
public frmImage(clsSupport objSupport, TCBase.clsTCBase mTCBase, Form objParent, Image image) : base(objSupport, myFormName, mTCBase, objParent) { Resize += frmImage_Resize; Load += frmImage_Load; //This call is required by the Windows Form Designer. InitializeComponent(); pbImage.Image = image; }
public clsSupportBase(clsSupport objSupport, string ModuleName) : base() { mSupport = objSupport; mMyModuleName = ModuleName; mMyTraceID = string.Format("{0}.{1}.{2}", mSupport.ApplicationName, System.Reflection.Assembly.GetCallingAssembly().GetName().Name.ToString(), ModuleName); //Debug.WriteLine("Allocating New clsSupportBase for " & mMyTraceID) //This call is required by the Component Designer. InitializeComponent(); }
public frmTraceOptions(ref clsSupport objSupport) : base(objSupport, "frmTraceOptions") { Closing += frmTraceOptions_Closing; Load += frmTraceOptions_Load; Activated += frmTraceOptions_Activated; //This call is required by the Windows Form Designer. InitializeComponent(); }
public frmSupportBase() : base() { mSupport = new clsSupport(); mMyModuleName = "frmSupportBase"; mMyParent = null; mMyTraceID = string.Format("{0}.{1}.{2}", mSupport.ApplicationName, mSupport.ExecutingComponentName, mMyModuleName); //This call is required by the Windows Form Designer. InitializeComponent(); }
public frmAbout(clsSupport objSupport, TCBase.clsTCBase mTCBase, Form objParent) : base(objSupport, myFormName, mTCBase, objParent) { Load += frmAbout_Load; Activated += frmAbout_Activated; //This call is required by the Windows Form Designer. InitializeComponent(); this.Icon = objParent.Icon; this.Text = "Help About " + mSupport.ApplicationName + "C#"; }
public frmSupportBase(clsSupport objSupport, string ModuleName, Form objParent = null) : base() { mSupport = objSupport; mMyModuleName = ModuleName; mMyParent = objParent; mMyTraceID = string.Format("{0}.{1}.{2}", mSupport.ApplicationName, System.Reflection.Assembly.GetCallingAssembly().GetName().Name.ToString(), mMyModuleName); mMyAssemblyInfo = new AssemblyInfo(System.Reflection.Assembly.GetCallingAssembly()); //This call is required by the Windows Form Designer. InitializeComponent(); }
public frmReport(clsSupport objSupport, clsTCBase objTCBase, Form objParent = null, string Caption = null) : base(objSupport, "frmReport", objTCBase, objParent) { Closing += frmReport_Closing; Activated += frmReport_Activated; InitializeComponent(); if ((Caption != null)) { this.Text = Caption; } mRegistryKey = string.Format("{0}\\{1} Settings\\Report Settings", mTCBase.RegistryKey, ((mTCBase.ActiveForm == null) ? "frmMain" : mTCBase.ActiveForm.Name)); }
public frmQuery(clsSupport objSupport, clsTCBase objTCBase, Form objParent = null, string Caption = null) : base(objSupport, "frmQuery", objTCBase, objParent) { InitializeComponent(); if ((Caption != null)) { this.Text = Caption; } mSQLForm = (frmSQL)objParent; var _with1 = tooltipQuery; _with1.SetToolTip(this.txtName, "Query Name"); _with1.SetToolTip(this.txtDescription, "Description of Query"); this.Icon = objParent.Icon; }
public frmMsgBox(clsSupport objSupport, Form objParent = null) : base(objSupport, "frmMsgBox", objParent) { Closing += frmMsgBox_Closing; Shown += frmMsgBox_Shown; //This call is required by the Windows Form Designer. InitializeComponent(); if (mTCBase.MyComputer.Screen.Bounds.Width > 640 && mTCBase.MyComputer.Screen.Bounds.Height > 480) { this.MaximumSize = new Size(800, 600); } else { //Size the form to VGA Minimums... this.MaximumSize = new Size(640, 480); } picIcon.Image = ImgIcons.Images[(int)MsgBoxImagesEnum.vbExclamationImage]; //Use as default... //Debug.WriteLine(String.Format("New(): Me.Size: {0}; rtfMessage.Size: {1}", Me.Size.ToString, Me.rtfMessage.Size.ToString)) }
public clsSupportBase() : base() { try { //Dim StackTrace As String //Dim Stack As New StackTrace(True) //For i As Integer = 0 To Stack.FrameCount - 1 // StackTrace &= Stack.GetFrame(i).ToString //Next //MessageBox.Show("StackTrace: " & vbCrLf & StackTrace) //Stack = Nothing //This call is required by the Component Designer. InitializeComponent(); //Add any initialization after the InitializeComponent() call mSupport = new clsSupport(); mMyTraceID = string.Format("{0}.{1}.{2}", mSupport.ApplicationName, System.Reflection.Assembly.GetCallingAssembly().GetName().Name.ToString(), mMyModuleName); } catch (Exception ex) { throw; } }
protected void Dispose(bool Disposing) { try { if (bDisposed) { return; } if (Disposing) { //Object is being disposed, not finalized. //It is safe to access other objects (other than the base object) only from inside this block. if ((mSupport != null)) { Trace("Disposing: " + mMyTraceID, trcOption.trcMemory); } } } finally { mSupport = null; bDisposed = true; //MyBase.Dispose(Disposing) } }
internal clsTrace(clsSupport objSupport, string TracePath = null, clsTrace.trcOption toTraceOptions = trcOption.trcNone, bool bTraceMode = false) : base() { const string EntryName = "New"; mSupport = objSupport; mMyModuleName = "clsTrace"; mMyTraceID = string.Format("{0}.{1}.{2}", mSupport.ApplicationName, mSupport.ExecutingComponentName, mMyModuleName); TraceIndent = 0; mTraceOptions = toTraceOptions; mTraceUnit = 0; mTraceFile = (string)Microsoft.VisualBasic.Interaction.IIf((TracePath == null), bpeNullString, TracePath); mInitialTraceMessage = bpeNullString; mThreadID = System.Threading.Thread.CurrentThread.ManagedThreadId; TraceMode = bTraceMode; Trace(string.Format("{0}.{1}(objSupport:={{clsSupport}}, TracePath:=\"{2}\", toTraceOptions:={3}, bTraceMode:={4})", new object[] { mMyTraceID, EntryName, mTraceFile, toTraceOptions, bTraceMode }), trcOption.trcSupport); }
internal clsString(clsSupport objSupport) : base(objSupport, "clsString") { Trace("objSupport:={" + objSupport.GetType().ToString() + "}", trcOption.trcSupport); //Do more stuff, if necessary... }
internal clsUI(clsSupport objSupport) : base(objSupport, "clsUI") { Trace("objSupport:={" + objSupport.GetType().ToString() + "}", trcOption.trcSupport); }