コード例 #1
0
        private void InfoCollarFileButton_Click(object sender, EventArgs e)
        {
            var file = ((CollarFileListItem)CollarFilesListBox.SelectedItem).File;
            var form = new FileDetailsForm(file);

            form.DatabaseChanged += (o, args) => CollarFileDataChanged();
            form.Show(this);
        }
コード例 #2
0
        private void TransmissionDetails()
        {
            var file = (CollarFile)TransmissionsDataGridView.SelectedRows[0].Cells[0].Value;
            var form = new FileDetailsForm(file);

            form.DatabaseChanged += (o, x) => TransmissionDataChanged();
            form.Show(this);
        }
コード例 #3
0
        private void DerivedDataDetails()
        {
            var file = (CollarFile)DerivedDataGridView.SelectedRows[0].Cells[0].Value;
            var form = new FileDetailsForm(file);

            form.DatabaseChanged += (o, x) => DerivedDataChanged();
            form.Show(this);
        }
コード例 #4
0
        private void IssueFileDetails()
        {
            var file = (CollarFile)ProcessingIssuesDataGridView.SelectedRows[0].Cells[0].Value;
            var form = new FileDetailsForm(file);

            form.DatabaseChanged += (o, x) => IssueDataChanged();
            form.Show(this);
        }
コード例 #5
0
        private void SourceFileButton_Click(object sender, EventArgs e)
        {
            if (File.ParentFileId == null)
            {
                return;
            }
            var form = new FileDetailsForm(File.ParentFile);

            form.DatabaseChanged += (o, args) => FileDataChanged();
            form.Show(this);
        }
コード例 #6
0
 private void ChildFilesDataGridView_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     //Do not open (and potentially edit) a child file if we are editing the parent
     if (IsEditMode)
         return;
     //I can't use the DataSource here, because it is an anoymous type.
     var file = (CollarFile)DerivedFilesDataGridView.SelectedRows[0].Cells[0].Value;
     var form = new FileDetailsForm(file);
     form.DatabaseChanged += (o, args) => FileDataChanged();
     form.Show(this);
 }
コード例 #7
0
        private void DownloadsDetails()
        {
            var file = (CollarFile)DownloadsDataGridView.SelectedRows[0].Cells[2].Value;

            if (file == null)
            {
                return;
            }
            var form = new FileDetailsForm(file);

            form.DatabaseChanged += (o, x) => DownloadsChanged();
            form.Show(this);
        }
コード例 #8
0
        private void ChildFilesDataGridView_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            //Do not open (and potentially edit) a child file if we are editing the parent
            if (IsEditMode)
            {
                return;
            }
            //I can't use the DataSource here, because it is an anoymous type.
            var file = (CollarFile)DerivedFilesDataGridView.SelectedRows[0].Cells[0].Value;
            var form = new FileDetailsForm(file);

            form.DatabaseChanged += (o, args) => FileDataChanged();
            form.Show(this);
        }
コード例 #9
0
        private void FileInfoButton_Click(object sender, EventArgs e)
        {
            if (FilesDataGridView.CurrentRow == null)
            {
                return;
            }
            var item = FilesDataGridView.CurrentRow.DataBoundItem as CollarFixesByFileResult;

            if (item == null)
            {
                return;
            }
            var file = Database.CollarFiles.FirstOrDefault(f => f.FileId == item.FileId);

            if (file == null)
            {
                return;
            }
            var form = new FileDetailsForm(file);

            form.DatabaseChanged += (o, x) => FileDataChanged();
            form.Show(this);
        }
コード例 #10
0
 private void InfoFileButton_Click(object sender, EventArgs e)
 {
     var file = ((FileListItem)FilesListBox.SelectedItem).File;
     var form = new FileDetailsForm(file);
     form.DatabaseChanged += (o, args) => FileDataChanged();
     form.Show(this);
 }
コード例 #11
0
 private void IssueFileDetails()
 {
     var file = (CollarFile)ProcessingIssuesDataGridView.SelectedRows[0].Cells[0].Value;
     var form = new FileDetailsForm(file);
     form.DatabaseChanged += (o, x) => IssueDataChanged();
     form.Show(this);
 }
コード例 #12
0
 private void FileInfoButton_Click(object sender, EventArgs e)
 {
     if (FilesDataGridView.CurrentRow == null)
         return;
     var item = FilesDataGridView.CurrentRow.DataBoundItem as CollarFixesByFileResult;
     if (item == null)
         return;
     var file = Database.CollarFiles.FirstOrDefault(f => f.FileId == item.FileId);
     if (file == null)
         return;
     var form = new FileDetailsForm(file);
     form.DatabaseChanged += (o, x) => FileDataChanged();
     form.Show(this);
 }
コード例 #13
0
 private void TransmissionDetails()
 {
     var file = (CollarFile)TransmissionsDataGridView.SelectedRows[0].Cells[0].Value;
     var form = new FileDetailsForm(file);
     form.DatabaseChanged += (o, x) => TransmissionDataChanged();
     form.Show(this);
 }
コード例 #14
0
 private void DownloadsDetails()
 {
     var file = (CollarFile)DownloadsDataGridView.SelectedRows[0].Cells[2].Value;
     if (file == null)
         return;
     var form = new FileDetailsForm(file);
     form.DatabaseChanged += (o, x) => DownloadsChanged();
     form.Show(this);
 }
コード例 #15
0
 private void DerivedDataDetails()
 {
     var file = (CollarFile)DerivedDataGridView.SelectedRows[0].Cells[0].Value;
     var form = new FileDetailsForm(file);
     form.DatabaseChanged += (o, x) => DerivedDataChanged();
     form.Show(this);
 }
コード例 #16
0
 private void SourceFileButton_Click(object sender, EventArgs e)
 {
     if (File.ParentFileId == null)
         return;
     var form = new FileDetailsForm(File.ParentFile);
     form.DatabaseChanged += (o, args) => FileDataChanged();
     form.Show(this);
 }