예제 #1
0
        private void InfoParameterFileButton_Click(object sender, EventArgs e)
        {
            var file = ((ParameterFileListItem)ParameterFilesListBox.SelectedItem).File;
            var form = new CollarParameterFileDetailsForm(file);

            form.DatabaseChanged += (o, args) => ParameterFileDataChanged();
            form.Show(this);
        }
        private void InfoParameterButton_Click(object sender, EventArgs e)
        {
            var parameter = (CollarParameter)ParametersDataGridView.SelectedRows[0].Cells[0].Value;

            if (parameter.CollarParameterFile == null)
            {
                return;
            }
            var form = new CollarParameterFileDetailsForm(parameter.CollarParameterFile);

            form.DatabaseChanged += (o, x) => ParametersDataChanged();
            form.Show(this);
        }
예제 #3
0
        private void ShowParameterFileDetails()
        {
            var fileId = (int)ParametersDataGridView.SelectedRows[0].Cells[0].Value;
            var file   = Database.CollarParameterFiles.FirstOrDefault(f => f.FileId == fileId);

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

            form.DatabaseChanged += (o, x) => ParameterFileChanged();
            form.Show(this);
        }
 private void ShowTpfFileDetails()
 {
     var fileId = (int)TpfDataGridView.SelectedRows[0].Cells[0].Value;
     var file = Database.CollarParameterFiles.FirstOrDefault(f => f.FileId == fileId);
     if (file == null)
         return;
     var form = new CollarParameterFileDetailsForm(file);
     form.DatabaseChanged += (o, x) => ParametersDataChanged();
     form.Show(this);
 }
 private void InfoParameterButton_Click(object sender, EventArgs e)
 {
     var parameter = (CollarParameter)ParametersDataGridView.SelectedRows[0].Cells[0].Value;
     if (parameter.CollarParameterFile == null)
         return;
     var form = new CollarParameterFileDetailsForm(parameter.CollarParameterFile);
     form.DatabaseChanged += (o, x) => ParametersDataChanged();
     form.Show(this);
 }
 private void InfoParameterFileButton_Click(object sender, EventArgs e)
 {
     var file = ((ParameterFileListItem)ParameterFilesListBox.SelectedItem).File;
     var form = new CollarParameterFileDetailsForm(file);
     form.DatabaseChanged += (o, args) => ParameterFileDataChanged();
     form.Show(this);
 }