private void FrmVersionInfo_Load(object sender, System.EventArgs e) { try { g_TimeServer = SYS_VersionInfo.Inst.GetTimeServer().Value; LastDate = g_TimeServer; ListVer = SYS_VersionInfo.GetList(); DienThoai = AutoUpdate.GetVersionNew(EnumModule.G5_DienThoai); TongDai = AutoUpdate.GetVersionNew(EnumModule.G5_TongDai); DieuHanhChinh = AutoUpdate.GetVersionNew(EnumModule.DieuHanhChinh); } catch (Exception ex) { } #region Fill dữ liệu grdData.DataSource = ListVer; txt_DienThoai_PhienBan.Text = DienThoai.Version; txt_DienThoai_HanCapNhat.EditValue = DienThoai.UpdateDate; txt_DienThoai_MoTa.Text = DienThoai.Description; txt_TongDai_PhienBan.Text = TongDai.Version; txt_TongDai_HanCapNhat.EditValue = TongDai.UpdateDate; txt_TongDai_MoTa.Text = TongDai.Description; txt_DieuHanhChinh_PhienBan.Text = DieuHanhChinh.Version; txt_DieuHanhChinh_HanCapNhat.EditValue = DieuHanhChinh.UpdateDate; txt_DieuHanhChinh_MoTa.Text = DieuHanhChinh.Description; #endregion }
private void FrmRequired_Load(object sender, System.EventArgs e) { var info = AutoUpdate.GetVersionNew(Global.Module); txtDescription.Text = info.Description; lblVer.Text = info.Version; lblHanCapNhat.Text = info.UpdateDate.ToString("HH:mm dd/MM/yyyy"); }