public PhoneViewModel(Phone phone) { this.Phone = phone; this.LastClicked = DateTime.Now; _status = ePhoneStatus.Free; _lineStatus = eLineStatus.Good; this.OnClickCommand = new RelayCommand(p => OnClick()); }
public void SetLineStatus(eLineStatus status) { switch (status) { case eLineStatus.Disabled: this.img_line.color = this.disabledLineColor; break; case eLineStatus.Enabled: this.img_line.color = this.enabledLineColor; break; case eLineStatus.Unlocked: this.img_line.color = this.unlockedImageColor; break; } }