void ReleaseDesignerOutlets ()
		{
			if (bottomLeft != null) {
				bottomLeft.Dispose ();
				bottomLeft = null;
			}

			if (bottomRight != null) {
				bottomRight.Dispose ();
				bottomRight = null;
			}

			if (label != null) {
				label.Dispose ();
				label = null;
			}

			if (topLeft != null) {
				topLeft.Dispose ();
				topLeft = null;
			}

			if (topRight != null) {
				topRight.Dispose ();
				topRight = null;
			}
		}
 void ReleaseDesignerOutlets()
 {
     if (btnsiguiente != null) {
         btnsiguiente.Dispose ();
         btnsiguiente = null;
     }
 }
        void ReleaseDesignerOutlets()
        {
            if (bottomLeft != null)
            {
                bottomLeft.Dispose();
                bottomLeft = null;
            }

            if (bottomRight != null)
            {
                bottomRight.Dispose();
                bottomRight = null;
            }

            if (label != null)
            {
                label.Dispose();
                label = null;
            }

            if (topLeft != null)
            {
                topLeft.Dispose();
                topLeft = null;
            }

            if (topRight != null)
            {
                topRight.Dispose();
                topRight = null;
            }
        }
 void ReleaseDesignerOutlets()
 {
     if (Button != null)
     {
         Button.Dispose();
         Button = null;
     }
 }
Esempio n. 5
0
        partial void YearsButton_Activated(WatchKit.WKInterfaceButton sender)
        {
            this.YearsLabel.SetText(CalculatorApp.Default.DisplayValue.ToString());
            calc.Periods = (int)CalculatorApp.Default.DisplayValue * 12;

            this.Display();
            CalculatorApp.Default.AllClear();
        }
Esempio n. 6
0
        partial void InterestButton_Activated(WatchKit.WKInterfaceButton sender)
        {
            this.InterestLabel.SetText(CalculatorApp.Default.DisplayValue.ToString());
            calc.Interest = (double)CalculatorApp.Default.DisplayValue / 12f;

            this.Display();
            CalculatorApp.Default.AllClear();
        }
Esempio n. 7
0
        partial void PrincipleButton_Activated(WatchKit.WKInterfaceButton sender)
        {
            this.PrincipleLabel.SetText(CalculatorApp.Default.DisplayValue.ToString());
            this.calc.Principle = (double)CalculatorApp.Default.DisplayValue;

            this.Display();
            CalculatorApp.Default.AllClear();
        }
 void ReleaseDesignerOutlets()
 {
     if (bpmOutputLabel != null) {
         bpmOutputLabel.Dispose ();
         bpmOutputLabel = null;
     }
     if (tapButton != null) {
         tapButton.Dispose ();
         tapButton = null;
     }
 }
 void ReleaseDesignerOutlets()
 {
     if (containerGroup != null) {
         containerGroup.Dispose ();
         containerGroup = null;
     }
     if (workoutButton != null) {
         workoutButton.Dispose ();
         workoutButton = null;
     }
 }
        void ReleaseDesignerOutlets ()
        {
            if (MessageText != null) {
                MessageText.Dispose ();
                MessageText = null;
            }

            if (SetMessageButton != null) {
                SetMessageButton.Dispose ();
                SetMessageButton = null;
            }
        }
        void ReleaseDesignerOutlets ()
        {
            if (activeEnergyBurnedLabel != null) {
                activeEnergyBurnedLabel.Dispose ();
                activeEnergyBurnedLabel = null;
            }

            if (workoutButton != null) {
                workoutButton.Dispose ();
                workoutButton = null;
            }
        }
        partial void WKInterfaceButton5_Activated(WatchKit.WKInterfaceButton sender)
        {
            if (entryMode)
            {
                Console.WriteLine("EntryMode=true");
                var suggest = new string[] { "Get groceries", "Buy gas", "Post letter" };

                PresentTextInputController(suggest, WatchKit.WKTextInputMode.AllowEmoji, (a) => {
                    Console.WriteLine("Text was selected");
                    if (a != null && a.Count > 0)
                    {
                        enteredText = a.GetItem <NSObject>(0).ToString();
                        Console.WriteLine("   " + a.GetItem <NSObject>(0));
                        Name.SetText(a.GetItem <NSObject>(0).ToString());
                        entryMode = false;
                        EnterText.SetTitle("Save");
                    }
                    else
                    {
                        Console.WriteLine("Error");
                    }
                });
            }
            else
            {
                Console.WriteLine("EntryMode=false  must save");
                // TODO: save!
                TodoItemDatabase Database = null;
                var todo = new TodoItem {
                    Name = enteredText, Done = false
                };

                if (Database == null)
                {
                    var FileManager           = new NSFileManager();
                    var appGroupContainer     = FileManager.GetContainerUrl("group.com.conceptdevelopment.WatchTodo");
                    var appGroupContainerPath = appGroupContainer.Path;
                    Console.WriteLine("agcpath: " + appGroupContainerPath);

                    var sqliteFilename = "TodoSQLite.db3";
                    //			string documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); // Documents folder
                    //			string libraryPath = Path.Combine (documentsPath, "..", "Library"); // Library folder
                    var path = Path.Combine(appGroupContainerPath, sqliteFilename);
                    var conn = new SQLiteConnection(path);

                    Database = new TodoItemDatabase(conn);
                }
                Database.SaveItem(todo);
                Database.Close();

                PopController();
            }
        }
Esempio n. 13
0
 void ReleaseDesignerOutlets()
 {
     if (lblLaunchApp != null)
     {
         lblLaunchApp.Dispose();
         lblLaunchApp = null;
     }
     if (startGameButton != null)
     {
         startGameButton.Dispose();
         startGameButton = null;
     }
 }
 void ReleaseDesignerOutlets()
 {
     if (bpmOutputLabel != null)
     {
         bpmOutputLabel.Dispose();
         bpmOutputLabel = null;
     }
     if (tapButton != null)
     {
         tapButton.Dispose();
         tapButton = null;
     }
 }
Esempio n. 15
0
        void ReleaseDesignerOutlets()
        {
            if (appleButton != null)
            {
                appleButton.Dispose();
                appleButton = null;
            }

            if (tokyoButton != null)
            {
                tokyoButton.Dispose();
                tokyoButton = null;
            }

            if (inButton != null)
            {
                inButton.Dispose();
                inButton = null;
            }

            if (outButton != null)
            {
                outButton.Dispose();
                outButton = null;
            }

            if (pinsButton != null)
            {
                pinsButton.Dispose();
                pinsButton = null;
            }

            if (imagesButton != null)
            {
                imagesButton.Dispose();
                imagesButton = null;
            }

            if (removeAllButton != null)
            {
                removeAllButton.Dispose();
                removeAllButton = null;
            }

            if (map != null)
            {
                map.Dispose();
                map = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (activeEnergyBurnedLabel != null)
            {
                activeEnergyBurnedLabel.Dispose();
                activeEnergyBurnedLabel = null;
            }

            if (workoutButton != null)
            {
                workoutButton.Dispose();
                workoutButton = null;
            }
        }
Esempio n. 17
0
        void ReleaseDesignerOutlets()
        {
            if (MessageText != null)
            {
                MessageText.Dispose();
                MessageText = null;
            }

            if (SetMessageButton != null)
            {
                SetMessageButton.Dispose();
                SetMessageButton = null;
            }
        }
 void ReleaseDesignerOutlets()
 {
     if (brightnessSlider != null) {
         brightnessSlider.Dispose ();
         brightnessSlider = null;
     }
     if (lightNameLabel != null) {
         lightNameLabel.Dispose ();
         lightNameLabel = null;
     }
     if (onOffSwitch != null) {
         onOffSwitch.Dispose ();
         onOffSwitch = null;
     }
     if (voiceInputButton != null) {
         voiceInputButton.Dispose ();
         voiceInputButton = null;
     }
 }
		void ReleaseDesignerOutlets ()
		{
			if (appleButton != null) {
				appleButton.Dispose ();
				appleButton = null;
			}

			if (tokyoButton != null) {
				tokyoButton.Dispose ();
				tokyoButton = null;
			}

			if (inButton != null) {
				inButton.Dispose ();
				inButton = null;
			}

			if (outButton != null) {
				outButton.Dispose ();
				outButton = null;
			}

			if (pinsButton != null) {
				pinsButton.Dispose ();
				pinsButton = null;
			}

			if (imagesButton != null) {
				imagesButton.Dispose ();
				imagesButton = null;
			}

			if (removeAllButton != null) {
				removeAllButton.Dispose ();
				removeAllButton = null;
			}

			if (map != null) {
				map.Dispose ();
				map = null;
			}
		}
        void ReleaseDesignerOutlets()
        {
            if (FromLabel != null)
            {
                FromLabel.Dispose();
                FromLabel = null;
            }

            if (GoButton != null)
            {
                GoButton.Dispose();
                GoButton = null;
            }

            if (Map != null)
            {
                Map.Dispose();
                Map = null;
            }

            if (ToLabel != null)
            {
                ToLabel.Dispose();
                ToLabel = null;
            }

            if (ZoomInButton != null)
            {
                ZoomInButton.Dispose();
                ZoomInButton = null;
            }

            if (ZoomOutButton != null)
            {
                ZoomOutButton.Dispose();
                ZoomOutButton = null;
            }
        }
Esempio n. 21
0
        void ReleaseDesignerOutlets()
        {
            if (CaloriesLabel != null)
            {
                CaloriesLabel.Dispose();
                CaloriesLabel = null;
            }

            if (DistanceLabel != null)
            {
                DistanceLabel.Dispose();
                DistanceLabel = null;
            }

            if (DurationLabel != null)
            {
                DurationLabel.Dispose();
                DurationLabel = null;
            }

            if (MarkerButton != null)
            {
                MarkerButton.Dispose();
                MarkerButton = null;
            }

            if (MarkerLabel != null)
            {
                MarkerLabel.Dispose();
                MarkerLabel = null;
            }

            if (PauseResumeButton != null)
            {
                PauseResumeButton.Dispose();
                PauseResumeButton = null;
            }
        }
 partial void YearsButton_Activated(WatchKit.WKInterfaceButton sender);
        partial void WKInterfaceButton5_Activated(WatchKit.WKInterfaceButton sender)
        {
            if (entryMode)
            {
                Console.WriteLine("EntryMode=true");

                // Straight to dictation (no suggestions)
//				PresentTextInputController(new string[0], WatchKit.WKTextInputMode.Plain, (a) => {
//					Console.WriteLine("Dictation was accepted");
//					if (a != null && a.Count > 0) {
//						enteredText = a.GetItem<NSObject>(0).ToString();
//						Console.WriteLine("   " + a.GetItem<NSObject>(0));
//						Name.SetText (a.GetItem<NSObject>(0).ToString());
//						entryMode = false;
//						EnterText.SetTitle ("Save");
//					} else {
//						Console.WriteLine("Error");
//					}
//				});

                var suggest = new string[] { "Get groceries", "Buy gas", "Post letter" };
                PresentTextInputController(suggest, WatchKit.WKTextInputMode.AllowEmoji, (a) => {
                    Console.WriteLine("Text was selected");
                    if (a != null && a.Count > 0)
                    {
                        enteredText = a.GetItem <NSObject>(0).ToString();
                        Console.WriteLine("   " + a.GetItem <NSObject>(0));
                        Name.SetText(a.GetItem <NSObject>(0).ToString());
                        entryMode = false;
                        EnterText.SetTitle("Save");
                    }
                    else
                    {
                        Console.WriteLine("Error");
                    }
                });
            }
            else
            {
                Console.WriteLine("EntryMode=false  must save " + enteredText + ".");
                // TODO: save!
                TodoItemDatabase Database = null;
                var todo = new TodoItem {
                    Name = enteredText, Done = false
                };

                if (Database == null)
                {
                    //HACK: no app group
                    var appGroupContainerPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
                    Console.WriteLine("agcpath: " + appGroupContainerPath);

                    var sqliteFilename = "TodoSQLite.db3";
                    var path           = Path.Combine(appGroupContainerPath, sqliteFilename);
                    var conn           = new SQLiteConnection(path);

                    Database = new TodoItemDatabase(conn);
                }
                Database.SaveItem(todo);
                Database.Close();

                PopController();
            }
        }
 partial void WKInterfaceButton5_Activated(WatchKit.WKInterfaceButton sender);
Esempio n. 25
0
 partial void startGameButton_Activated(WatchKit.WKInterfaceButton sender);
Esempio n. 26
0
 partial void startGameButton_Activated(WatchKit.WKInterfaceButton sender)
 {
     PushController("game", null);
 }
 partial void PrincipleButton_Activated(WatchKit.WKInterfaceButton sender);
 partial void btnZoomOut_Activated(WatchKit.WKInterfaceButton sender);
 partial void OnButtonPress(WatchKit.WKInterfaceButton sender);
 partial void InterestButton_Activated(WatchKit.WKInterfaceButton sender);