protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); mWork = new Work(this); mAdditional = new Additional(this); Text_Title = FindViewById <TextView>(Resource.Id.textView1); Text_Speech = FindViewById <TextView>(Resource.Id.textView2); Text_Information = FindViewById <TextView>(Resource.Id.textView3); Text_Error = FindViewById <TextView>(Resource.Id.textView4); image = FindViewById <ImageView>(Resource.Id.imageView1); recButton = FindViewById <Button>(Resource.Id.btnRecord); sr = SpeechRecognizer.CreateSpeechRecognizer(this); sr.SetRecognitionListener(this); recButton.Click += delegate { if (!RecordingOn) { RecordingOn = true; speech_recognition(); } }; }
public Work(Context context) { this.context = context; mAdditional = new Additional(context); mMusic = new Music(context); mImage = new Image(context); }
public Image(Context context) { this.context = context; mAdditional = new Additional(context); }
public Music(Context context) { this.context = context; mAdditional = new Additional(context); }