Exemplo n.º 1
0
 public LessonList(vcWorkSpace _workSpace)
 {
     this._lessonModel        = SharedServiceContainer.Resolve <LessonViewModel>();
     this._lessonResultsModel = SharedServiceContainer.Resolve <LessonResultsViewModel>();
     this._myWorkSpaceParent  = _workSpace;
     this.Initialize();
 }
Exemplo n.º 2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // LessonMain TableView
            // Setup tableview source
            this._srcLesson = new LessonMenuTableSource(this);
            this._srcLesson.ScrolledToBottom += ScrolledToBottom;
            this.tvLessonMain.Source          = this._srcLesson;

            // Register Events
            // Level Buttons
            this.btnLevel1.TouchUpInside  += OnClick_btnLevel1;
            this.btnLevel2.TouchUpInside  += OnClick_btnLevel2;
            this.btnLevel3.TouchUpInside  += OnClick_btnLevel3;
            this.btnLevel4.TouchUpInside  += OnClick_btnLevel4;
            this.btnLevel5.TouchUpInside  += OnClick_btnLevel5;
            this.btnLevel6.TouchUpInside  += OnClick_btnLevel6;
            this.btnLevel7.TouchUpInside  += OnClick_btnLevel7;
            this.btnLevel8.TouchUpInside  += OnClick_btnLevel8;
            this.btnLevel9.TouchUpInside  += OnClick_btnLevel9;
            this.btnLevel10.TouchUpInside += OnClick_btnLevel10;
            // Type Buttons
            this.btnTypeBasic.TouchUpInside     += OnClick_btnTypeBasic;
            this.btnTypeFractions.TouchUpInside += OnClick_btnTypeFraction;
            this.btnTypeGroups.TouchUpInside    += OnClick_btnTypeGrouped;
            this.btnTypeMixed.TouchUpInside     += OnClick_btnTypeMixed;
            // Operator Buttons
            this.btnOpAdd.TouchUpInside      += OnClick_btnOpAdd;
            this.btnOpAddSub.TouchUpInside   += OnClick_btnOpAddSub;
            this.btnOpDivision.TouchUpInside += OnClick_btnOpDivision;
            this.btnOpMultiply.TouchUpInside += OnClick_btnOpMultiply;
            this.btnOpMultSub.TouchUpInside  += OnClick_btnOpDivMulti;
            this.btnOpSubtract.TouchUpInside += OnClick_btnOpSubtract;
            // BackToMenu
            this.btnBackToMenu.TouchUpInside += OnClick_btnBackToMenu;



            #region Tutorial
            // 4/8/2016
            // Either of these must be used along with the deque approach in the tableview delegate getcell().
            // But! as I have learnt over the last 2 days, yu need not worry if the cell is a prototype inside a storyboard file.
            // Because the prototyped cell belongs to the tableview inside the storyboard, its already aware of what cell to create in a deque
            // Custom Class method  for auto loading the deque
            //this.tvLessonMain.RegisterClassForCellReuse(typeof(vLessonTableCell), "tvLessonMainCell");
            // Nib file method for autoloading the deque
            //this.tvLessonMain.RegisterNibForCellReuse(UINib.FromName("vlessonTableCell", NSBundle.MainBundle), "tvLessonMainCell");
            #endregion

            // LessonDetail TableView
            // Setup tableview source
            this._srcLessonDetail = new LessonDetailMenuTableSource(this);
            // No need to hook anything up to ScolledBottom.
            this.tvLessonDetail.Source = this._srcLessonDetail;

            // Load Initial lesson list
            _vmLesson = SharedServiceContainer.Resolve <LessonViewModel>();
            this.LoadLessonsInit();
        }
        public NWDbBase(ISQLitePlatform _SQLitePlatform, string _path) : base()
        {
            _sqliteplatform   = _SQLitePlatform;
            _sharedglobal     = SharedServiceContainer.Resolve <ISharedGlobal>();
            _ConnectionString = new SQLiteConnectionString(_sharedglobal.GS__FullDbPath, false);

            Path = _path;
        }
Exemplo n.º 4
0
 public NWRepository()
 {
     _sharedGlobal = SharedServiceContainer.Resolve <ISharedGlobal> ();
     _db           = SharedServiceContainer.Resolve <INWDatabaseContext> ();
     // Base orderby clause
     _predicateOrderBy = (i => i.SEQ);
     //Expression<Func<U,object>> _predicateOrderBy = (i => i.SEQ);
 }
Exemplo n.º 5
0
 public UINumberFactory()
 {
     // Factory Classes for expression building
     this._numberFactoryClient  = new NumberFactoryClient();
     this._expressionFactory    = new ExpressionFactory(this._numberFactoryClient);
     this._globalSizeDimensions = iOSCoreServiceContainer.Resolve <iOSNumberDimensions> ();
     this._storyBoard           = iOSCoreServiceContainer.Resolve <UIStoryboard> ();
     this._numberAppSettings    = SharedServiceContainer.Resolve <IAppSettings>();
     //this._intLessonDetailSeq = 1;
 }
Exemplo n.º 6
0
        public vcWorkSpace UILoadWorkSpace()
        {
            // Create our workspace object
            var _vcCurrentWorkSpace = this._storyBoard.InstantiateViewController("vcWorkSpace") as vcWorkSpace;
            var _vmLessons          = SharedServiceContainer.Resolve <LessonViewModel>();
            var _vmLessonResults    = SharedServiceContainer.Resolve <LessonResultsViewModel>();

            _vcCurrentWorkSpace.LessonNumletList           = new LessonList <LessonNumletSet>(_vmLessons, _vmLessonResults, _vcCurrentWorkSpace);
            _vcCurrentWorkSpace.LessonNumletList.sortOrder = G__SortOrder.Descending;

            return(_vcCurrentWorkSpace);
        }
Exemplo n.º 7
0
 public LessonDetailMenuTableSource(vcLessonMenu _vc)
 {
     this.vclessonmenu = _vc;
     this.vmLesson     = SharedServiceContainer.Resolve <LessonViewModel> ();
 }
Exemplo n.º 8
0
        /// <summary>
        /// Creates the main expression equation, this is displ.
        /// Divided-by symbol = (opt + /)
        /// Syntax
        /// * Standard Equations
        /// Simple comma seperated values
        /// eg 1,+,1,=,2 || 12.45,x,234.11,=,1200.98
        /// * Fractions
        /// An F placed in front of a fraction tells the factory its a fraction
        /// Fraction eg = "F,1/2" this will display a half
        /// * Methods
        /// These are used to help problem solving in stages, all values are writable
        /// Every new M denots a Method section "Numlet"
        /// Method eg = "M,1,+,1,=,2,M,2,+,2,=,4
        /// Bracing eg = "1,+,(,F,1/2,+,F,1/2,),=,2"
        /// </summary>

        public ExpressionFactory(IUINumberFactoryClient UIPlatform)
        {
            this._numberAppSettings = SharedServiceContainer.Resolve <IAppSettings>();
            this.FactoryClient      = UIPlatform;
            this._intMethodCount    = 0;
        }
 public LessonResultsViewModel()
 {
     lessonResultsService       = SharedServiceContainer.Resolve <IRepoLessonResults <EntityLessonResults> > ();
     lessonDetailResultsService = SharedServiceContainer.Resolve <IRepoLessonDetailResults <EntityLessonDetailResults> > ();
 }
 private void Initialize()
 {
     this.iOSUIAppearance    = iOSCoreServiceContainer.Resolve <iOSUIManager>();
     this._numberAppSettings = SharedServiceContainer.Resolve <IAppSettings>();
 }
Exemplo n.º 11
0
 public LessonViewModel()
 {
     lessonService       = SharedServiceContainer.Resolve <IRepoLesson <EntityLesson> > ();
     lessonDetailService = SharedServiceContainer.Resolve <IRepoLessonDetail <EntityLessonDetail> > ();
 }