public static void ShowText(string text) { DLicense dl = new DLicense(); dl.SetShowText(text); dl.ShowDialog(null); }
private void DownForm_Load(object sender, EventArgs e) { if (invMode) { UIVisible = false; } Application.DoEvents(); if (!invMode && Config.Default.HasLicense && !Config.Default.KeyStore.GetBool(KeyStoreIds.LicenseShownB, false, true)) { DLicense dl = new DLicense(); DialogResult dr = dl.ShowDialog(this); dl = null; if (dr.Equals(DialogResult.Cancel)) { Application.DoEvents(); InnerClose(); } else { Config.Default.KeyStore.SetBool(KeyStoreIds.LicenseShownB, true, true); } } DownThread.Default.Monitor.OnLog += Log; DownThread.Default.Monitor.OnLogProgress += LogProgress; DownThread.Default.doneAction = new DownThread.DDone(this.ThreadDone); DownThread.Default.beforeCallStart = new Remote.DBeforeCallStart(this.BeforeCallStart); DownThread.Default.Start(null, !invMode || Config.Default.updateBeforeStart); }