Esempio n. 1
0
        private UserControl GetControl(Tile t)
        {
            UserControl control = null;

            switch (t.Title)
            {
            case "Calculator":
                control = new Calculator();
                break;

            case "Equation System Solver":
                control = new EquationSystemSolver();
                break;

            case "Unit Converter":
                control = new UnitConverterPage();
                break;

            case "Currency Converter":
                control = new CurrencyConverter();
                break;

            case "Function Plot":
                control = new Graphing();
                break;

            default:
                var title = t.ToolTip.ToString();
                control = App.Modules.RunByName(title);
                break;
            }

            return(control);
        }
        private UserControl GetControl(Tile t)
        {
            UserControl control = null;

            switch (t.Title)
            {
                case "Calculator":
                    control = new Calculator();
                    break;
                case "Equation System Solver":
                    control = new EquationSystemSolver();
                    break;
                case "Unit Converter":
                    control = new UnitConverterPage();
                    break;
                case "Currency Converter":
                    control = new CurrencyConverter();
                    break;
                case "Function Plot":
                    control = new Graphing();
                    break;
                default:
                    var title = t.ToolTip.ToString();
                    control = App.Modules.RunByName(title);
                    break;
            }

            return control;
        }