예제 #1
0
 public SettingsPage()
 {
     InitializeComponent();
     settings     = (Application.Current as App).CalcManager;
     sFig.Value   = settings.SignificantFigures;
     sEps.Value   = settings.ComparisonEpsilon;
     sIter.Value  = settings.IterationLimit;
     sRecur.Value = settings.RecursionLimit;
 }
예제 #2
0
        public App()
        {
            InitializeComponent();
            Suspending += OnSuspending;

            calcul  = new Calculator();
            calcmgr = new CalcManager(calcul);

            CalcDefaults.BasicOperators(calcul);
            CalcDefaults.AdvancedOperators(calcul);
            CalcDefaults.Programming(calcul);
            CalcDefaults.Constants(calcul);
            CalcDefaults.Miscelaneous(calcul);
        }