private void BtnDelete_Click(object sender, EventArgs e) { Pan_delete pd = new Pan_delete(); pd.ShowDialog(); }
private void deleteToolStripMenuItem_Click(object sender, EventArgs e) { Pan_delete f = new Pan_delete(); // creating Pan_delete object f.ShowDialog(); }