private void btn_editJob_Click(object sender, EventArgs e) { if (treeView_jobLest.SelectedNode == null) { MessageBox.Show("Please select one of the components to edit the job first."); return; } Frm_add_edit_Jobs w_aej = new Frm_add_edit_Jobs(); int getTag = Convert.ToInt32(treeView_jobLest.SelectedNode.Tag); w_aej.Get_jobId = getTag; w_aej.formType = 2; ///update w_aej.ShowDialog(); }
private void btn_addJob_Click(object sender, EventArgs e) /// s.28 { if (treeView_jobLest.SelectedNode == null) { MessageBox.Show("Please select one of the components to create a new job."); return; } Frm_add_edit_Jobs w_aej = new Frm_add_edit_Jobs(); int getTag = Convert.ToInt32(treeView_jobLest.SelectedNode.Tag); w_aej.Get_jobLevel = getTag; w_aej.Get_DetermineJobLevel = GetJobLevel; w_aej.formType = 1; w_aej.ShowDialog(); }