void Model_OnUpdatePhoneStatus(PhoneStatus.PhoneStatusKind Status)
        {
            switch (Status)
            {
            case PhoneStatus.PhoneStatusKind.phoneIncomingCalling:
            {
                window = new PhoneConnectWindow();
                PhoneBook book = new PhoneBook();
                book.Name          = "着信中";
                window.DataContext = new PhoneBookViewModel(book, this.Model);
                window.Show();
            }
            break;

            case PhoneStatus.PhoneStatusKind.phoneOutgoingCalling:
            {
                window = new PhoneConnectWindow();
                PhoneBook book = new PhoneBook();
                book.Name          = "発信中";
                window.DataContext = new PhoneBookViewModel(book, this.Model);
                window.Show();
            }
            break;

            case PhoneStatus.PhoneStatusKind.phoneNormal:
            {
                if (window != null)
                {
                    window.Close();
                }
            }
            break;
            }
        }
Example #2
0
        private void OnHfpPhoneStatusCallSetupChanged()
        {
            switch (ProfileHfp.PhoneStatusValue.GetStatus(HfpPhoneStatus.STATUS_CALLSETUP))
            {
            case 0:
                if (Status != PhoneStatus.PhoneStatusKind.phoneNormal)
                {
                    Status = PhoneStatus.PhoneStatusKind.phoneNormal;
                    OnUpdatePhoneStatus(Status);
                }
                break;

            case 1:
                Status = PhoneStatus.PhoneStatusKind.phoneIncomingCalling;
                OnUpdatePhoneStatus(Status);
                break;

            case 2:
                Status = PhoneStatus.PhoneStatusKind.phoneOutgoingCalling;
                OnUpdatePhoneStatus(Status);
                break;

            case 3:
                //OnUpdatePhoneStatus(PhoneStatus.PhoneStatusKind.);
                break;
            }
        }
Example #3
0
 private void blueTooth_OnUpdatePhoneStatus(PhoneStatus.PhoneStatusKind Status)
 {
     if (OnUpdatePhoneStatus != null)
     {
         OnUpdatePhoneStatus(Status);
     }
 }
Example #4
0
        private void OnHfpPhoneStatusCallChanged()
        {
            switch (ProfileHfp.PhoneStatusValue.GetStatus(HfpPhoneStatus.STATUS_CALL))
            {
            case 0:
                if (Status != PhoneStatus.PhoneStatusKind.phoneNormal)
                {
                    Status = PhoneStatus.PhoneStatusKind.phoneNormal;
                    OnUpdatePhoneStatus(Status);
                }
                break;

            case 1:
                Status = PhoneStatus.PhoneStatusKind.phoneConnect;
                OnUpdatePhoneStatus(Status);
                break;
            }
        }