void newButton_Click(object sender, System.EventArgs e) { var butText = (sender as Button).Text; secondForm secondF = new secondForm(butText, path); secondF.ShowDialog(); }
private void firstNote_Click(object sender, EventArgs e) { secondForm secondF = new secondForm("note1", path); secondF.ShowDialog(); }