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

		return currApp;
	}