Esempio n. 1
0
 private void M_OkButton_Click(object sender, EventArgs e)
 {
     IntentFactory.StartActivityThatAlreadyExist <MainActivity>(this, (intent) =>
     {
         intent.PutExtra(IntentFactory.SetIdToCall, m_CallNumber);
         intent.PutExtra(IntentFactory.SetCallType, Convert.ToInt32(m_CallType));
     });
 }
Esempio n. 2
0
        void m_ListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e)
        {
            var number = m_PhoneNumbersAdapter[e.Position];

            // IntentFactory.StartActivityWithNoHistory<PhoneNumberAdditionalSettingsActivity>(this, (intent) =>    //TODO: use this in future versions
            IntentFactory.StartActivityThatAlreadyExist <MainActivity>(this, (intent) =>
            {
                intent.PutExtra(IntentFactory.SetIdToCall, number.Number);
                intent.PutExtra(IntentFactory.SetCallType, Convert.ToInt32(m_CallType));
            });
        }
Esempio n. 3
0
        void chooseSkypeUserOKButton_Click(object sender, EventArgs e)
        {
            TextView skypeUserTextView = this.FindViewById <TextView>(Resource.Id.ChooseSkypeUserText);
            string   skypeUser         = skypeUserTextView.Text;

            if (string.IsNullOrWhiteSpace(skypeUser))
            {
                return;
            }

            IntentFactory.StartActivityThatAlreadyExist <MainActivity>(this, (intent) =>
            {
                intent.PutExtra(IntentFactory.SetCallType, Convert.ToInt32(SettingsTable.CallTypeEnum.SkypeUser));
                intent.PutExtra(IntentFactory.SetIdToCall, skypeUser);
            });
        }
Esempio n. 4
0
        public override void OnBackPressed()
        {
            base.OnBackPressed();

            IntentFactory.StartActivityThatAlreadyExist <MainActivity>(this);
        }