コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: UPeveryday/tz3310
 private void NewJobButton_Click(object sender, RoutedEventArgs e)
 {
     if (TransformerListBox.SelectedIndex > -1)
     {
         JobSettingWindow jobHelper = new JobSettingWindow(TransformerListBox.SelectedItem.ToString());
         jobHelper.ShowDialog();
         refreshJobList();
     }
 }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: UPeveryday/tz3310
 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);
     }
 }