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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }