Esempio n. 1
0
        public Editor()
        {
            InitializeComponent();
            var factory = new FactoryMV();

            Active          = new ObservableCollection <string>(factory.GameActiveStrings);
            Passive         = new ObservableCollection <string>(factory.GamePassiveStrings);
            _u2.ItemsSource = Passive;
            _u3.ItemsSource = Active;
        }
Esempio n. 2
0
 public PumpBatlle()
 {
     InitializeComponent();
     _factory = new FactoryMV();
     _units   = new ObservableCollection <string>(_factory.GameUnitsStrings);
     Unitslist.ItemsSource  = _units;
     Unitslist2.ItemsSource = _units;
     test123.Text           = "0";
     test1232.Text          = "0";
     _toShow           = new ObservableCollection <ListBoxInfo>();
     _toShow2          = new ObservableCollection <ListBoxInfo>();
     Data.ItemsSource  = _toShow;
     Data2.ItemsSource = _toShow2;
 }