private void InitializeDialogs() { Global.BaseMapType = BaseMapType.WorldMapKitRoad; selectBaseMapTypeDialog = new SelectBaseMapTypeDialog(this, GetSharedPreferences(Global.PREFS_NAME, 0)); selectDisplayTypeDialog = new SelectDisplayTypeDialog(this, DisplayType.Point); }
public InputBingMapKeyDialog(Context context, SelectBaseMapTypeDialog selectBaseMapTypeDialog, ISharedPreferences preferences) : base(context) { inputBingMapsKeyView = View.Inflate(context, Resource.Layout.BingMapsKeyLayout, null); this.SetView(inputBingMapsKeyView); this.context = context; this.preferences = preferences; this.selectBaseMapTypeDialog = selectBaseMapTypeDialog; EditText bingMapsKeyEditText = inputBingMapsKeyView.FindViewById <EditText>(Resource.Id.BingMapsKeyEditText); Button bingMapsKeyCancelButton = inputBingMapsKeyView.FindViewById <Button>(Resource.Id.CancelButton); bingMapsKeyOkButton = inputBingMapsKeyView.FindViewById <Button>(Resource.Id.OkButton); bingMapsKeyOkButton.Click += BingMapsKeyOkButton_Click; bingMapsKeyCancelButton.Click += BingMapsKeyCancelButton_Click; }