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; }
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; } }