コード例 #1
0
ファイル: AlertsFragment.cs プロジェクト: thimakulani/GBV
        private void Adapter_FabCallClick(object sender, AlertsAdapterClickEventArgs e)
        {
            var uri    = Android.Net.Uri.Parse($"tel:{items[e.Position].Phone}");
            var intent = new Intent(Intent.ActionDial, uri);

            StartActivity(intent);
        }
コード例 #2
0
ファイル: AlertsFragment.cs プロジェクト: thimakulani/GBV
        private void Adapter_BtnNavClick(object sender, AlertsAdapterClickEventArgs e)
        {
            System.Globalization.CultureInfo cultureInfo = new System.Globalization.CultureInfo("en-US");
            cultureInfo.NumberFormat.NumberDecimalSeparator      = ".";
            System.Threading.Thread.CurrentThread.CurrentCulture = cultureInfo;

            //Intent intent = new Intent(Intent.ActionView, Uri.parse("google.navigation:q=22.659239,88.43534&mode=l"));

            //ShowMapHandler.Invoke(this, new ShowMapFragmentArgs { Type = 2, Alerts = items[e.Position] });

            // await OpenMap.NavigateToVictim(double.Parse(items[e.Position].Lat), double.Parse(items[e.Position].Lon));
        }
コード例 #3
0
ファイル: AlertsFragment.cs プロジェクト: thimakulani/GBV
 private void Adapter_ItemClick(object sender, AlertsAdapterClickEventArgs e)
 {
     ShowMapHandler.Invoke(this, new ShowMapFragmentArgs {
         Alerts = items[e.Position], Type = 1
     });
 }