public static void CreateApplicationObjectForCrossTarget()
	{
		if (currApp == null)
		{
			currApp = (c__wpfapp)Sybase.PowerBuilder.WPF.PBSession.CurrentSession.CreateInstance(typeof(c__wpfapp), 0);
			currApp.wpfapp = currApp;
		}
	}
	public static c__wpfapp GetCurrentApplication()
	{
		if (currApp == null)
		{
			currApp = Sybase.PowerBuilder.PBApplication.CurrentApplication as c__wpfapp;
			if ((currApp != null )&&(currApp.wpfapp == null))
			{
				currApp.wpfapp = currApp;
				
			}
		}

		return currApp;
	}