ProfitCalculation() public method

public ProfitCalculation ( ) : List
return List
        private void btn_Updater(object sender, RoutedEventArgs e)
        {
            OptimizationHandler opHandler = new OptimizationHandler();

            //      Working when the class and list is made
            List<ProfitItem> profitProductList = opHandler.ProfitCalculation();
            LVProductSubClasses.ItemsSource = profitProductList;
        }
        public ProfitView()
        {
            InitializeComponent();
            OptimizationHandler opHandler = new OptimizationHandler();

            //      Working when the class and list is made
            List<ProfitItem> profitProductList = opHandler.ProfitCalculation();
            LVProductSubClasses.ItemsSource = profitProductList;
        }