예제 #1
0
 /// <summary>
 /// This event handler reopens db4o tool window.
 /// </summary>
 /// <param name="CommandBarControl"></param>
 /// <param name="Handled"></param>
 /// <param name="CancelDefault"></param>
 static void omObjectBrowserControlHandler_Click(object CommandBarControl, ref bool Handled, ref bool CancelDefault)
 {
     try
     {
         Cursor.Current = Cursors.WaitCursor;
         ObjectBrowserToolWin.CreateObjectBrowserToolWindow();
         Cursor.Current = Cursors.Default;
     }
     catch (Exception oEx)
     {
         LoggingHelper.HandleException(oEx);
     }
 }
예제 #2
0
        private void OpenDemoDb()
        {
            try
            {
                Assembly ThisAssembly = Assembly.GetExecutingAssembly();

                ObjectBrowserToolWin.CreateObjectBrowserToolWindow();
                ObjectBrowserToolWin.ObjBrowserWindow.Visible = true;
                Login.CreateQueryBuilderToolWindow();
                PropertyPaneToolWin.CreatePropertiesPaneToolWindow(true);
                PropertyPaneToolWin.PropWindow.Visible = true;
                dbCreateDemoDbControl.Enabled          = false;
                connectDatabaseMenu.Caption            = OMControlLibrary.Common.Constants.TOOLBAR_DISCONNECT;
            }
            catch (Exception oEx)
            {
                LoggingHelper.HandleException(oEx);
            }
        }