示例#1
0
        private void BtnFileLinking_Click(object sender, EventArgs e)
        {
            var newLinkedFile  = new LinkedFile();
            var newFileLinking = new FileAdder(ref newLinkedFile);

            newFileLinking.ShowDialog();
        }
示例#2
0
        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);
        }