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;
        }
Beispiel #4
0
            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());
			}
Beispiel #7
0
 public void setEmployeeType(EmployeeType value)
 {
     employeeType = value;
     NotifyListeners("EmployeeType", value);
 }
Beispiel #8
0
 public override long GetItemId(int position)
 {
     return(EmployeeType.Values()[position]);
 }
Beispiel #9
0
 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();
        }
Beispiel #12
0
 public void setType(EmployeeType value)
 {
     this.type = value;
     notifier.NotifyListeners("Type", value);
 }
Beispiel #13
0
 public void setEmployeeType(EmployeeType value)
 {
     employeeType = value;
     NotifyListeners("EmployeeType", value);
 }