예제 #1
0
            internal bool Convert(string baseType, double baseVal, string convertedType, out double score)
            {
                string baseValue = baseVal.ToString();

                score = ContainersApi.Convert(baseType, convertedType, baseValue, Name);
                return(true);
            }
예제 #2
0
        //List<UnitsContainer> unitsContainers;

        //public MainWindow(IStatisticsRepository repo, UnitManager manager)
        public MainWindow(ContainersApi containers)
        {
            InitializeComponent();
            //this.repo = repo;
            //this.unitsContainers = manager.GetContainers();
            //this.UnitTypeComboBox.ItemsSource = this.unitsContainers;
            //UsageStatisticsGrid.ItemsSource = this.repo.GetAllStatistics();

            this.containers = containers;
            this.UnitTypeComboBox.ItemsSource    = containers.GetContainers();
            this.AddUnitTypeComboBox.ItemsSource = containers.GetContainers();
            UsageStatisticsGrid.ItemsSource      = containers.GetAllStatistics();
        }