This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using Android.App; | |
| using Android.Widget; | |
| using Android.OS; | |
| using Java.Lang; | |
| namespace UnhandledCrash | |
| { | |
| [Activity (Label = "UnhandledCrash", MainLauncher = true)] | |
| public class MainActivity : Activity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using MonoTouch.Foundation; | |
| using MonoTouch.UIKit; | |
| namespace LinguisticTagger | |
| { | |
| // The UIApplicationDelegate for the application. This class is responsible for launching the | |
| // User Interface of the application, as well as listening (and optionally responding) to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void PrintNetworkInfo(){ | |
| using (var wifi = (WifiManager)GetSystemService (Context.WifiService)) { | |
| using (var dhcp = wifi.DhcpInfo) { | |
| var gateway = dhcp.Gateway; | |
| var ip = dhcp.IpAddress; | |
| Console.WriteLine (Formatter.FormatIpAddress (gateway)); | |
| Console.WriteLine (Formatter.FormatIpAddress (ip)); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Android.App; | |
| using Android.Content; | |
| using Android.Widget; | |
| using Android.OS; | |
| using Android.Text; | |
| using Android.Graphics.Drawables; | |
| namespace TextviweWithImage | |
| { | |
| [Activity (Label = "TextviweWithImage", MainLauncher = true)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Task<int> ShowModalAletViewAsync (string title, string message, params string[] buttons) | |
| { | |
| var alertView = new UIAlertView (title, message, null, null, buttons); | |
| alertView.Show (); | |
| var tsc = new TaskCompletionSource<int> (); | |
| alertView.Clicked += (sender, buttonArgs) => { | |
| Console.WriteLine ("User clicked on {0}", buttonArgs.ButtonIndex); | |
| tsc.TrySetResult(buttonArgs.ButtonIndex); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int ShowModalAletView (string title, string message, params string[] buttons) | |
| { | |
| int clicked = -1; | |
| var alertView = new UIAlertView (title, message, null, null, buttons); | |
| alertView.Show (); | |
| bool done = false; | |
| alertView.Clicked += (sender, buttonArgs) => { | |
| Console.WriteLine ("User clicked on {0}", buttonArgs.ButtonIndex); | |
| clicked = buttonArgs.ButtonIndex; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using MonoTouch.Foundation; | |
| using MonoTouch.UIKit; | |
| using System.Threading.Tasks; | |
| namespace BasicTable { | |
| public class TableSource : UITableViewSource { | |
| protected string[] tableItems; | |
| protected string cellIdentifier = "TableCell"; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using MonoTouch.Foundation; | |
| using MonoTouch.UIKit; | |
| using MonoTouch.Dialog; | |
| namespace LinqMtd | |
| { | |
| // The UIApplicationDelegate for the application. This class is responsible for launching the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using MonoMac.Foundation; | |
| using MonoMac.AppKit; | |
| namespace PopOverSample | |
| { | |
| public partial class MainWindowController : NSWindowController | |
| { | |
| #region Constructors | |
| // Called when created from unmanaged code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using MonoTouch.Dialog; | |
| using MonoTouch.Foundation; | |
| using MonoTouch.UIKit; | |
| namespace DVC_Test_JanGundorf | |
| { | |
| public class AddressElement : StyledMultilineElement, IElementSizing | |
| { | |
| public AddressElement (string caption, string value, UITableViewCellStyle style) : base ( |