internal WatchApplication(WatchApplication implementation) : this(NDalicManualPINVOKE.new_WatchApplication__SWIG_1(WatchApplication.getCPtr(implementation)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
internal WatchApplication(WatchApplication implementation) : this(Interop.Watch.NewWatchApplication(WatchApplication.getCPtr(implementation)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
/// <summary> /// Run Application. /// </summary> /// <param name="args">Arguments from commandline.</param> public void Run(string[] args) { args[0] = Tizen.Applications.Application.Current.ApplicationInfo.ExecutablePath; if (args.Length == 1) { _application = WatchApplication.NewWatchApplication(); } else if (args.Length > 1) { _application = WatchApplication.NewWatchApplication(args, _stylesheet); } _application.BatteryLow += OnBatteryLow; _application.LanguageChanged += OnLanguageChanged; _application.MemoryLow += OnMemoryLow; _application.RegionChanged += OnRegionChanged; _application.Initialized += OnInitialized; _application.Resumed += OnResumed; _application.Terminating += OnTerminated; _application.Paused += OnPaused; _application.AppControl += OnAppControl; _application.AmbientChanged += OnAmbientChanged; _application.AmbientTick += OnAmbientTick; _application.TimeTick += OnTimeTick; _application.MainLoop(); }
public new static WatchApplication New() { WatchApplication ret = new WatchApplication(NDalicManualPINVOKE.WatchApplication_New__SWIG_0(), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public new static WatchApplication New() { WatchApplication ret = new WatchApplication(Interop.Watch.WatchApplicationNew(), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static WatchApplication NewWatchApplication(string[] args, string stylesheet) { WatchApplication ret = New(args, stylesheet); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } _instance = ret; return(ret); }
public static WatchApplication NewWatchApplication() { WatchApplication ret = New(); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } // we've got an application now connect the signals _instance = ret; return(ret); }
public static WatchApplication New(string[] args, string stylesheet) { int argc = args.Length; string argvStr = string.Join(" ", args); WatchApplication ret = new WatchApplication(NDalicManualPINVOKE.WatchApplication_New__SWIG_2(argc, argvStr, stylesheet), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static WatchApplication New(string[] args) { int argc = args.Length; string argvStr = string.Join(" ", args); WatchApplication ret = new WatchApplication(Interop.Watch.WatchApplication_New__SWIG_1(argc, argvStr), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WatchApplication obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }