//###########################################CLASS AdministationManagerLog EVENTS##################################################### //event is raised when the class is loaded private void ClassLoad(object sender, EventArgs e) { try { if (!RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo)) { throw new Exception("You are not authorized to access this module."); } _administrationManager = new AdministrtationLogic(_userInfo); _transactionLogInfo = new CommonExchange.TransactionLog(); _administrationManager.SelectUserInformation(_userInfo, "*"); _administrationManager.InitializeUserCombo(this.cboUser); this.SetDataGridViewSource(_administrationManager.TransactionLogTable); RemoteClient.ProcStatic.SetDataGridViewColumns(this.dgvList, false); DateTime serverDateTime = DateTime.MinValue; if (DateTime.TryParse(_administrationManager.ServerDateTime, out serverDateTime)) { this.dtpStart.Value = this.dtpEnd.Value = serverDateTime; } } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating"); this.Close(); } }//------------------------------
}//------------------------- //####################################################END BUTTON btnSearch EVENTS#################################################### //####################################################LINKLABEL lnkResset EVENTS#################################################### //event is raised when the control is clicked private void lnkResetLinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { this.txtSearch.Clear(); _administrationManager.SelectUserInformation(_userInfo, "*"); _administrationManager.InitializeUserCombo(this.cboUser); _transactionLogInfo.UserInfo.UserId = String.Empty; this.dtpEnd.Checked = this.dtpStart.Checked = false; this.txtSearch.Focus(); }//-------------------------