private void LoadButton_Click(object sender, EventArgs e) { if (inputOpenFileDialog.ShowDialog() == DialogResult.OK) { try { ReadFromFile n = new ReadFromFile(inputOpenFileDialog.FileName); spis = n.FileToCharacter(inputOpenFileDialog.FileName); OuText.Lines = spis.Printer(); inputOpenFileDialog.Dispose(); } finally { } } }
private void Find_Click(object sender, EventArgs e) { spis.Find(Prof); OuText.Lines = spis.Printer(); }