private void ClearCache_Click(object sender, EventArgs e) { ClearCache dialog = new ClearCache(); if (dialog.ShowDialog(Earth3d.MainWindow) == DialogResult.OK) { Earth3d.MainWindow.Close(); } }
private void ClearCache_Click(object sender, EventArgs e) { var dialog = new ClearCache(); if (dialog.ShowDialog( Earth3d.MainWindow) == DialogResult.OK) { Earth3d.MainWindow.Close(); } }