示例#1
0
        public PhoneViewModel(Phone phone)
        {
            this.Phone       = phone;
            this.LastClicked = DateTime.Now;
            _status          = ePhoneStatus.Free;
            _lineStatus      = eLineStatus.Good;

            this.OnClickCommand = new RelayCommand(p => OnClick());
        }
示例#2
0
    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;
        }
    }