private void editBtn_Click(object sender, EventArgs e) { if (!StartPage.Admin) { MessageBox.Show("You don't have rights to Edit", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { FormImport formImport = new FormImport(); formImport.filenobox.Text = listView1.SelectedItems[0].Text; formImport.Show(); this.Close(); } }
private void button2_Click(object sender, EventArgs e) { FormImport importform = new FormImport(); importform.Show(); }