public MoverMercanciaView()
        {
            InitializeComponent();
            contentButton();

            Processes.Add(new ProcessInfo
            {
                CpuUsage  = 10.3,
                MemUsage  = 48.9,
                Processes = new ObservableCollection <Processleo>()
            });
            var pro = new Processleo {
                Name = "Process1", Processes = new ObservableCollection <Processleo>()
            };

            pro.Processes.Add(new Processleo {
                Name = "SubProcess1", Processes = new ObservableCollection <Processleo>()
            });
            Processes[0].Processes.Add(pro);
            Processes.Add(new ProcessInfo
            {
                CpuUsage  = 0,
                MemUsage  = 100,
                Processes = new ObservableCollection <Processleo>()
            });
            var pro2 = new Processleo {
                Name = "Process2", Processes = new ObservableCollection <Processleo>()
            };

            pro2.Processes.Add(new Processleo {
                Name = "SubProcess1", Processes = new ObservableCollection <Processleo>()
            });
            pro2.Processes.Add(new Processleo {
                Name = "SubProcess2", Processes = new ObservableCollection <Processleo>()
            });
            pro2.Processes.Add(new Processleo {
                Name = "SubProcess3", Processes = new ObservableCollection <Processleo>()
            });
            Processes[1].Processes.Add(pro2);
        }
Пример #2
0
        //public event EventHandler<SelectionChangedEventArgs> FilaSeleccionadaRecibo;

        #endregion

        #endregion

        public MoverMercanciaView()
        {
            InitializeComponent();
            Processes.Add(new ProcessInfo
            {
                CpuUsage = 10.3,
                MemUsage = 48.9,
                Processes = new ObservableCollection<Processleo>()
            });
            var pro = new Processleo { Name = "Process1", Processes = new ObservableCollection<Processleo>() };
            pro.Processes.Add(new Processleo { Name = "SubProcess1", Processes = new ObservableCollection<Processleo>() });
            Processes[0].Processes.Add(pro);
            Processes.Add(new ProcessInfo
            {
                CpuUsage = 0,
                MemUsage = 100,
                Processes = new ObservableCollection<Processleo>()
            });
            var pro2 = new Processleo { Name = "Process2", Processes = new ObservableCollection<Processleo>() };
            pro2.Processes.Add(new Processleo { Name = "SubProcess1", Processes = new ObservableCollection<Processleo>() });
            pro2.Processes.Add(new Processleo { Name = "SubProcess2", Processes = new ObservableCollection<Processleo>() });
            pro2.Processes.Add(new Processleo { Name = "SubProcess3", Processes = new ObservableCollection<Processleo>() });
            Processes[1].Processes.Add(pro2);
        }