private void StartClicked(object sender, EventArgs args)
 {
     Frontend.Client.Windows.Session session = Dataphoria.GetLiveDesignableFrontendSession();
     try
     {
         session.SetLibrary(LibraryName);
         session.StartCallback(GetDocumentExpression(), null);
     }
     catch
     {
         session.Dispose();
         throw;
     }
 }
Exemple #2
0
		protected void BrowseClicked(object sender, EventArgs args)
		{
			Frontend.Client.Windows.Session session = Dataphoria.GetLiveDesignableFrontendSession();
			try
			{
				session.SetFormDesigner();
				session.StartCallback(String.Format(".Frontend.Derive('{0}', 'Browse')", ObjectName), null);
			}
			catch
			{
				session.Dispose();
				throw;
			}
		}
 private void StartClicked(object sender, EventArgs args)
 {
     Frontend.Client.Windows.Session session = Dataphoria.GetLiveDesignableFrontendSession();
     try
     {
         session.StartCallback(session.SetApplication(_iD), null);
     }
     catch
     {
         session.Dispose();
         throw;
     }
     Dataphoria.RefreshLibraries();
 }
Exemple #4
0
		protected void DeriveClicked(object sender, EventArgs args)
		{
			Frontend.Client.Windows.Session session = Dataphoria.GetLiveDesignableFrontendSession();
			try
			{
				session.SetFormDesigner();
				Frontend.Client.Windows.IWindowsFormInterface form = session.LoadForm(null, ".Frontend.Form('.Frontend', 'DerivedFormLauncher')");
				try
				{
					((Frontend.Client.ISource)form.FindNode("Main")).DataView.Fields["Query"].AsString = ObjectName;
					form.Show();
				}
				catch
				{
					form.HostNode.Dispose();
					throw;
				}
			}
			catch
			{
				session.Dispose();
				throw;
			}
		}