/// <summary> /// Thiết lập các giá trị mặc định cho class /// </summary> private void VietBaInitialize() { //Lấy về tên DLL. ManifestModule.Name ban đầu có dạng "DLLName.dll"-->Ta chỉ lấy phần "DLLName" AssName = this.GetType().Assembly.ManifestModule.Name;// System.Reflection.Assembly.GetExecutingAssembly().ManifestModule.Name; //Thiết lập chế độ MultiLanguage cho class if (globalVariables.SqlConn != null) { //MultiLanguage.SetLanguage(globalVariables.DisplayLanguage, this, AssName.Split('.')[0], globalVariables.SqlConn); //Khởi tạo tính năng tùy biến cấu hình ẩn hiện cột trên DataGridView. Chỉ có Form nào chứa DataGridView thì mới cần //khai báo mục này VietBaIT.CommonLibrary.GridViewUtils _GridViewUtils = new VietBaIT.CommonLibrary.GridViewUtils(this, globalVariables.Branch_ID, globalVariables.UserName, AssName, true); } //Tạo Trace cho chức năng này Trace = new TraceInfor(globalVariables.Branch_ID, globalVariables.UserName, System.DateTime.Now.ToShortDateString(), Utility.GetIPAddress(), AssName.Split('.')[0], globalVariables.SubSystemName, globalVariables.FunctionID, globalVariables.FunctionName, Utility.GetComputerName(), Utility.GetAccountName()); Utility.InitSubSonic(globalVariables.SqlConnectionString, globalVariables.ProviderName); }