private void loadPolicyJsonToolStripMenuItem_Click(object sender, EventArgs e) { dlgOpen.Title = "Open existing policy:"; if (dlgOpen.ShowDialog() == DialogResult.OK) { mainPolicy.reloadPolicy(File.ReadAllText(dlgOpen.FileName)); } refreshDomains(); refreshPhrases(); }