Exemplo n.º 1
0
	public static void CreateApplicationObjectForCrossTarget()
	{
		if (currApp == null)
		{
			currApp = (c__wpf_tuto_rest)Sybase.PowerBuilder.WPF.PBSession.CurrentSession.CreateInstance(typeof(c__wpf_tuto_rest), 0);
			currApp.wpf_tuto_rest = currApp;
		}
	}
Exemplo n.º 2
0
	public static c__wpf_tuto_rest GetCurrentApplication()
	{
		if (currApp == null)
		{
			currApp = Sybase.PowerBuilder.PBApplication.CurrentApplication as c__wpf_tuto_rest;
			if ((currApp != null )&&(currApp.wpf_tuto_rest == null))
			{
				currApp.wpf_tuto_rest = currApp;
				
			}
		}

		return currApp;
	}