Exemplo n.º 1
0
		public override void initListner ()
		{
			//set edittext listener
			mClearEditText.AddTextChangedListener (new MyTextChangedListener (this));
			//set item click listener
			sortListView.ItemClick += delegate(object sender, AdapterView.ItemClickEventArgs e) {
				SortModel user = sourceDateList [e.Position];
				if (user.ScreenCount > 0) {
					Intent intent = new Intent (this, typeof(TextActivity));
					intent.PutExtra ("lesson_id", user.LessonId);
					intent.PutExtra ("lesson_name", user.Name);
					StartActivity (intent);
				} else {
					DialogFactory.ToastDialog (this, "Empty lesson", "Oops,this lesson has not uploaded yet!", 0);
				}
			};
		}