public void SetLessonCell(vcLessonMenu controller, EntityLesson lesson, NSIndexPath indexPath) { var drawfact = vOperator.iOSDrawingFactory; this._vcLessonMenu = controller; // Set the start buttons seq and row number for easy launching from the button this.btnStartLesson.Seq = lesson.SEQ; this.btnStartLesson.IndexRow = indexPath.Row; // Set the text fields for each row this.lblLessonName.Text = lesson.NameLesson; // Draw Operator Layer drawfact.DrawingType = (G__FactoryDrawings)lesson.Operator; // Set the drawing in the middle of the view // when setting positions like this we manily refer to to the parents frame drawfact.ParentFrame = this.vOperator.Frame; drawfact.SetCenterRelativeParentViewPosX = true; drawfact.SetCenterRelativeParentViewPosY = true; drawfact.DisplayPositionX = G__NumberDisplayPositionX.Center; drawfact.DisplayPositionY = G__NumberDisplayPositionY.Center; // Sizeclass calculations drawfact.SetDisplaySizeAndScale(G__DisplaySizeLevels.Level3); drawfact.SetViewPosition(this.vOperator.Frame.Width, this.vOperator.Frame.Height); vOperator.DrawLayer(); this.lblType.Text = G__MathTypes.GetType((G__MathType)lesson.ExpressionType); this.lblLevel.LevelWidth = (nfloat)lesson.Difficulty; this.lblLevel.Text = G__MathLevels.GetLevel((G__MathLevel)lesson.Difficulty); }
public vcWorkSpaceLabel(EntityLesson wsLesson, EntityLessonDetail wsLessonDetail) { this._wsLesson = wsLesson; this._wsLessonDetail = wsLessonDetail; // Logic so we know this constructor was used // This may not be needed but it "may" be handy in the future depending on "where I create this class this._bDataPassedIn = true; Initialize(); }