private void button5_Click(object sender, EventArgs e) { if (splashl != null) { splashl.SetClosed = true; splashl = null; } }
private void button4_Click(object sender, EventArgs e) { splashl = new TK_SplashLicense(); System.Version v = Assembly.GetExecutingAssembly().GetName().Version; splashl.ShowSplash(string.Format(CultureInfo.InvariantCulture, "{0}.{1}.{2} (r{3})", v.Major, v.Minor, v.Build, v.Revision), result); splashl.FormClosed += splashl_FormClosed; }
private void splashl_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e) { MessageBox.Show(result.Result ? "OK" : "KO"); result.Result = false; splashl = null; }