コード例 #1
0
        private void BtnFileGroup_Click(object sender, EventArgs e)
        {
            var fileHead        = new FileOverhead();
            var createFileGroup = new CreateFilegroup(ref fileHead);

            createFileGroup.ShowDialog();
        }
コード例 #2
0
        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);
        }