Example #1
0
		public SendPostPage()
		{
			InitializeComponent();
			app = Application.Current as App;
			conn = app.LilyApi;
			settings = app.Resources["Settings"] as Settings;
			SystemTray.SetProgressIndicator(this, app.Indicator);
		}
Example #2
0
		// Code to execute when the application is launching (eg, from Start)
		// This code will not execute when the application is reactivated
		private void Application_Launching(object sender, LaunchingEventArgs e)
		{
			//Debug.WriteLine("Application_Launching");
			LilyApi = new Connection();
			Indicator = new ProgressIndicator()	{Text = "", IsVisible = false, IsIndeterminate = true};
			Settings settings = Application.Current.Resources["Settings"] as Settings;
			if (settings.IsFirstRun)
			{
				try
				{
					settings.Signature = string.Format("~~\nSent from my Windows Phone {0} {1}",
							DeviceStatus.DeviceManufacturer, DeviceStatus.DeviceName);
				}
				catch (Exception)
				{
					settings.Signature = "~~\nSent from my Windows Phone";
				}
				settings.IsFirstRun = false;
			}
		}
Example #3
0
		public FetchHotListRequest(Connection connection, BaseHandler callback)
			: base(connection, callback)
		{
		}
Example #4
0
		public LoginRequest(Connection connection, BaseHandler callback)
			: base(connection, callback)
		{
		}