Ejemplo 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);
        }
Ejemplo n.º 2
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;
        }