private void ShowEditorFragment(EmployeeType initialValue) { CustomEditorFragment fragment = new CustomEditorFragment(); fragment.AddPropertyChangedListener(this); fragment.Type = initialValue; FragmentActivity activity = (FragmentActivity)Context; fragment.Show(activity.SupportFragmentManager, "customEditor"); }
protected override void ApplyEntityValueToEditor(Java.Lang.Object o) { if(o == null) { this.editorButton.Text = "Tap to select."; return; } this.editorButton.Text = o.ToString(); type = (EmployeeType)o; }
protected override void ApplyEntityValueToEditor(Java.Lang.Object o) { if(o == null) { this.editorButton.Text = "Tap to select."; return; } this.editorButton.Text = o.ToString(); type = (EmployeeType)o; }
protected override void ApplyEntityValueToEditor(Java.Lang.Object o) { if (o == null) { this.editorButton.Text = "Tap to select."; return; } this.editorButton.Text = o.ToString(); //type = (EmployeeType)Enum.Parse(typeof(EmployeeType), o.ToString()); type = (EmployeeType)Enum.Parse(type.GetType(), o.ToString()); }
private void ShowEditorFragment(EmployeeType initialValue) { /*CustomEditorFragment fragment = new CustomEditorFragment(); fragment.AddPropertyChangedListener(this); fragment.Type = initialValue; fragment.Show(Activity.GetSupportFragmentManager(), "customEditor");*/ }
protected override void ApplyEntityValueToEditor(Java.Lang.Object o) { if(o == null) { this.editorButton.Text = "Tap to select."; return; } this.editorButton.Text = o.ToString(); //type = (EmployeeType)Enum.Parse(typeof(EmployeeType), o.ToString()); type = (EmployeeType)Enum.Parse(type.GetType(), o.ToString()); }
public void setEmployeeType(EmployeeType value) { employeeType = value; NotifyListeners("EmployeeType", value); }
public override long GetItemId(int position) { return(EmployeeType.Values()[position]); }
public override Java.Lang.Object GetItem(int position) { return(EmployeeType.Values()[position]); }
public void setType(EmployeeType value) { this.type = value; notifier.NotifyListeners("Type", value); }
public void OnItemClick(AdapterView parent, View view, int position, long id) { this.Type = (EmployeeType)Enum.GetValues(typeof(EmployeeType)).GetValue(position); this.Dismiss(); }
public void setType(EmployeeType value) { this.type = value; notifier.NotifyListeners("Type", value); }
public void setEmployeeType(EmployeeType value) { employeeType = value; NotifyListeners("EmployeeType", value); }