private void BtnFileLinking_Click(object sender, EventArgs e) { var newLinkedFile = new LinkedFile(); var newFileLinking = new FileAdder(ref newLinkedFile); newFileLinking.ShowDialog(); }
private void fileToolStripMenuItem_Click(object sender, EventArgs e) { var file = ((FileWithOverhead)TvFiles.SelectedObject).LinkedFile; var editFile = new FileAdder(ref file); editFile.ShowDialog(); ((FileWithOverhead)TvFiles.SelectedObject).LinkedFile = file; TvFiles.RefreshObject((FileWithOverhead)TvFiles.SelectedObject); }