Пример #1
0
 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;
     }
 }
Пример #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;
			}
		}
Пример #3
0
 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();
 }
Пример #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;
			}
		}