public partial class FrmViewAccidentDetails : Form { #region "Fields"
//Main Form Instance. public Form MainFormInstance; //Data Objects. private AutoClaimDataSet.TblClaimsRow ClaimData; public AutoClaimDataSet.TblClaimsRow SetClaimData { set { ClaimData = value; } } #endregion #region "Constructor" public FrmViewAccidentDetails(Form MainFormInst, AutoClaimDataSet.TblClaimsRow Row) { #region "General" InitializeComponent(); MainFormInstance = MainFormInst; STSDate.Text = "Date: " + System.DateTime.Now.ToString("dd/MM/yyyy"); STSTime.Text = "Time: " + System.DateTime.Now.ToString("HH:mm"); #endregion #region "Load Data Into Form"
#endregion } #endregion #region "Events" #region "Tree View - Click" private void TVMain_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Node.Tag == null) { return; } else { if (e.Node.Tag.ToString() == "CloseNode") { this.Close(); this.Dispose(); } } } #endregion #region "Main Timer - Tick" private void TMRMain_Tick(object sender, EventArgs e) { STSTime.Text = "Time: " + System.DateTime.Now.ToString("HH:mm"); } #endregion #endregion }
|