private void btnCast_Click(object sender, EventArgs e) { if (this.Cast != null) { this.Cast.Close(); this.Cast.Dispose(); } this.Cast = new CastTime(); this.Cast.Show(); }
public Settings() { this.InitializeComponent(); this.LoadSettingsData(); this.RefreshSettings(); if (this.Cast != null) { this.Cast.Close(); this.Cast.Dispose(); } this.Cast = new CastTime(); }