private void OnCursorChanged(object o, EventArgs args) { TreeIter iter; if (!treeview.Selection.GetSelected(out iter)) { return; } Game game = games_store.GetValue(iter, COL_OBJECT) as Game; // We should not be using IsPreviewMode to know if Initialize has been called if (game.IsPreviewMode == false) { game.IsPreviewMode = true; game.Begin(); } drawing_area.Drawable = game; drawing_area.Question = game.Question; drawing_area.QueueDraw(); }
// Gamesession has requested a redraw of the drawingarea public void SessionDrawRequest(object o, EventArgs args) { drawing_area.QueueDraw(); }