//Show deviation double click private void DeviationDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (this.DeviationDataGridView.CurrentRow != null) { String deviationRef = this.DeviationDataGridView.CurrentRow.Cells[0].Value.ToString(); Deviation deviation = deviationModel.getDeviationWithRef(deviationRef); //The user can update the deviation if signature attribut of the deviation has the user name if (deviation != null) { //show Deviation SaveDeviation saveDeviation = new SaveDeviation("showDeviation", null, this); saveDeviation.showDeviation(deviation); } else { MessageBox.Show("Deviation dos not exist!"); } } else { MessageBox.Show("Please Choose a Deviation Before makimg this Action!"); } }
//show deviation double click private void DeviationDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (this.DeviationDataGridView.CurrentRow != null) { String deviationRef = this.DeviationDataGridView.CurrentRow.Cells[0].Value.ToString(); Deviation deviation = deviationModel.getDeviationWithRef(deviationRef); //The user can update the deviation if signature attribut of the deviation has the user name if (deviation != null) { //show Deviation SaveDeviation saveDeviation = new SaveDeviation("showDeviation", this, null); saveDeviation.showDeviation(deviation); } else { MessageBox.Show(this.languageModel.getString("deviationNotExist")); } } else { MessageBox.Show(this.languageModel.getString("chooseDeviation")); } }