private void NewJobButton_Click(object sender, RoutedEventArgs e) { if (TransformerListBox.SelectedIndex > -1) { JobSettingWindow jobHelper = new JobSettingWindow(TransformerListBox.SelectedItem.ToString()); jobHelper.ShowDialog(); refreshJobList(); } }
private void ModifyJobButton_Click(object sender, RoutedEventArgs e) { if ((TransformerListBox.SelectedIndex > -1) && (JobListBox.SelectedIndex > -1)) { JobSettingWindow jobHelper = new JobSettingWindow(TransformerListBox.SelectedItem.ToString(), JobListBox.SelectedItem.ToString()); jobHelper.ShowDialog(); refreshJobList(); JobListBox.SelectedIndex = JobListBox.Items.IndexOf(jobHelper.jobName); } }