Beispiel #1
0
        partial void OnExecuteCommand(MonoTouch.UIKit.UIButton sender)
        {
            if (ExecuteCommand != null)
            {
                // go back to main screen to show results
                navigationController.SelectedIndex = 0;

                // identify button
                string cmd = mCommands[sender.Title(UIControlState.Normal)];

                // get parameters for button
                string param1 = string.Empty;
                string param2 = string.Empty;
                GetParameters(cmd, out param1, out param2);

                ExecuteCommand(this, new CommandItemExecuteInfo(cmd, param1, param2));
            }
        }
Beispiel #2
0
 partial void phoneClicked(MonoTouch.UIKit.UIButton sender)
 {
     Utility.OpenPhoneDailer(sender.Title(UIControlState.Normal));
 }
Beispiel #3
0
 partial void emailClicked(MonoTouch.UIKit.UIButton sender)
 {
     Utility.OpenUrl("mailto:" + sender.Title(UIControlState.Normal));
 }