private void tsmi_kv_vault_Click(object sender, EventArgs e) { frm_kv_vault kv_vault = new frm_kv_vault(); kv_vault.MdiParent = this; kv_vault.Show(); }
private void tsmi_tools_swap_kv_Click(object sender, EventArgs e) { if (MessageBox.Show("Would you like to check your vault? If not we'll open a prompt for you to search.", "So..", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) { frm_kv_vault kv_vault = new frm_kv_vault(); kv_vault.MdiParent = this; kv_vault.Show(); } else { OpenFileDialog ofd = new OpenFileDialog(); ofd.Title = "Select a KV..."; ofd.Filter = "Bin File *.bin|*.bin|All Types *.*|*.*"; if (ofd.ShowDialog() == DialogResult.OK) { // Check signatures to ensure it's a valid KV // If it's a valid KV, prompt with replace and restart (yes/no) } } }