private void attachmentsButton_Click(object sender, System.EventArgs e) { if(filesForm == null) { filesForm = new ExternalFilesXtraForm(); viewModel.FilesFormViewModel = filesForm.ViewModel; } viewModel.FilesFormViewModel.RefreshFiles(viewModel.Spool.Id); filesForm.SetData(viewModel.SpoolIsActive); filesForm.ShowDialog(); }
private void extraFiles_Click(object sender, System.EventArgs e) { if(filesForm == null) { filesForm = new ExternalFilesXtraForm(); viewModel.FilesFormViewModel = filesForm.ViewModel; } viewModel.FilesFormViewModel.RefreshFiles(viewModel.Joint.Id); filesForm.SetData(viewModel.JointIsActive); filesForm.ShowDialog(); }
private void heatAttachmentsButton_Click(object sender, EventArgs e) { if (filesForm == null) { filesForm = new ExternalFilesXtraForm(); viewModel.FilesFormViewModel = filesForm.ViewModel; } if (viewModel.Heat != null) { viewModel.FilesFormViewModel.RefreshFiles(viewModel.Heat.Id); } // open file for in readOnly mode filesForm.SetData(false); filesForm.ShowDialog(); }
private void AttachmentsButton_Click(object sender, EventArgs e) { if(filesForm == null) { filesForm = new ExternalFilesXtraForm(); viewModel.FilesFormViewModel = filesForm.ViewModel; } viewModel.FilesFormViewModel.RefreshFiles(viewModel.ReleaseNote.Id); filesForm.SetData(IsEditMode); filesForm.ShowDialog(); IsModified = filesForm.isEdit; }
private void simpleButton1_Click(object sender, System.EventArgs e) { if(filesForm == null) { filesForm = new ExternalFilesXtraForm(); viewModel.FilesFormViewModel = filesForm.ViewModel; } viewModel.FilesFormViewModel.RefreshFiles(viewModel.Component.Id); filesForm.SetData(viewModel.ComponentIsActive); filesForm.ShowDialog(); IsModified = filesForm.isEdit; }