Ejemplo n.º 1
0
 private void OK_Click(object sender, RoutedEventArgs e)
 {
     _newValue.Clear();
     //newValue.Add("aaaa");
     foreach (var i in Dest.Items)
     {
         Param_APPRes pl = (i as Param_APPRes);
         _newValue[pl.p_name] = pl.app_res;
     }
     this.DialogResult = true;
     this.Close();
 }
Ejemplo n.º 2
0
        private void Remove_Click(object sender, RoutedEventArgs e)
        {
            Param_APPRes pl = (Dest.SelectedItem as Param_APPRes);

            Dest.Items.Remove(pl);

            MainWindow mw = (MainWindow)Application.Current.MainWindow;

            foreach (param pa in mw.main_proj.CurrentWF.params_table)
            {
                if (pa.Name == pl.p_name)
                {
                    Source.Items.Add(pa);
                }
            }
        }