private void BtnFileGroup_Click(object sender, EventArgs e) { var fileHead = new FileOverhead(); var createFileGroup = new CreateFilegroup(ref fileHead); createFileGroup.ShowDialog(); }
private void filegroupToolStripMenuItem_Click(object sender, EventArgs e) { var filegroup = ((FileWithOverhead)TvFiles.SelectedObject).FileOverhead; var editFilegroup = new CreateFilegroup(ref filegroup); editFilegroup.ShowDialog(); ((FileWithOverhead)TvFiles.SelectedObject).FileOverhead = filegroup; TvFiles.RefreshObject((FileWithOverhead)TvFiles.SelectedObject); }