private void AddAssetToolStripMenuItem_Click(object sender, EventArgs e) { using (AddAssetFrm addAssetFrm = new AddAssetFrm()) { addAssetFrm.ShowDialog(); } }
private void AddAssetToolStripMenuItem_Click(object sender, EventArgs e) { using (AddAssetFrm addAssetFrm = new AddAssetFrm()) { if (addAssetFrm.ShowDialog() != DialogResult.OK) { return; } panel4.Controls.Clear(); foreach (string asset in Settings.Default.NEP5Watched.OfType <string>().ToArray()) { RefreshAsset(asset); } } }