private void addRemark() { //Add Remakr Window Remarks.remark remarkWindow = new Remarks.remark(workOrderId, true); remarkWindow.FormClosed += new FormClosedEventHandler(remarksEdited); remarkWindow.Show(); }
public void viewRemark() { if (getSelectedRemark() > -1) { Remarks.remark remarkWindow = new Remarks.remark(getSelectedRemark()); remarkWindow.FormClosed += new FormClosedEventHandler(refreshWindow); remarkWindow.Show(); } else { MessageBox.Show("Please Select a Remark!"); } }
private void editRemark() { //Edit Remark Window if (getSelectedRemark() > -1) { Remarks.remark remarkWindow = new Remarks.remark(getSelectedRemark()); remarkWindow.FormClosed += new FormClosedEventHandler(remarksEdited); remarkWindow.Show(); } else { MessageBox.Show("Please select a remark!"); } }