예제 #1
0
 private void addBtn_Click(object sender, RoutedEventArgs e)
 {
     isNew      = true;
     editWorker = (IParametrizable)typeLB.SelectedItem;
     LoadParameters(paramStack, editWorker.GetParam(new ControlParameters()), editWorker.GetType());
     editGrid.Visibility = Visibility.Visible;
 }
예제 #2
0
 private void workersLB_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (workersLB.SelectedItem != null)
     {
         editWorker = (IParametrizable)WorkersList.Instance[workersLB.SelectedIndex];
         LoadParameters(paramStack, editWorker.GetParam(new ControlParameters()), editWorker.GetType());
         editGrid.Visibility = Visibility.Visible;
     }
 }