public static void ShowDemoAlert(long aVal, long aChkVal, int aPerid) { CdlgDemoAlert lDialog = new CdlgDemoAlert(); RsViewEngine.Locale.AddLocalizedControl(lDialog); lDialog.Mode = ((aVal - aChkVal) > 0) ? SH_REMAIN : SH_EXPIRED; if (lDialog.Mode == SH_REMAIN) lDialog.UseForTag = RsViewEngine.Locale.GetTagText("rc1info1") + " " + (aVal - aChkVal) + " " + RsViewEngine.Locale.GetTagText("rc1info2"); else lDialog.UseForTag = ""; lDialog.ApplyLocale(null); lDialog.ShowDialog(); lDialog.ReleaseLocale(); }
public static void ShowDemoAlert(long aVal, long aChkVal, int aPerid) { CdlgDemoAlert lDialog = new CdlgDemoAlert(); RsViewEngine.Locale.AddLocalizedControl(lDialog); lDialog.Mode = ((aVal - aChkVal) > 0) ? SH_REMAIN : SH_EXPIRED; if (lDialog.Mode == SH_REMAIN) { lDialog.UseForTag = RsViewEngine.Locale.GetTagText("rc1info1") + " " + (aVal - aChkVal) + " " + RsViewEngine.Locale.GetTagText("rc1info2"); } else { lDialog.UseForTag = ""; } lDialog.ApplyLocale(null); lDialog.ShowDialog(); lDialog.ReleaseLocale(); }