Esempio n. 1
0
        /// <summary>
        /// This implements the "Synchronize with LiftShare..." menu command.
        /// </summary>
        /// <param name="sender"></param>
        /// <returns></returns>
        /// <remarks>Until LiftShare is fully implemented, this is irrelevant.</remarks>
        public bool OnSynchronize(object sender)
        {
            FdoCache cache      = null;
            Form     formActive = ActiveForm;

            foreach (FwXWindow wnd in m_rgMainWindows)
            {
                if ((object)wnd == (object)formActive)
                {
                    cache = wnd.Cache;
                    break;
                }
            }
            if (cache != null)
            {
                FwXWindow          wndActive = formActive as FwXWindow;
                LiftSynchronizeDlg dlg       = new LiftSynchronizeDlg(cache, wndActive.Mediator);
                dlg.ShowDialog(formActive);
                return(true);
            }
            else
            {
                return(false);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// This implements the "Synchronize with LiftShare..." menu command.
        /// </summary>
        /// <param name="sender"></param>
        /// <returns></returns>
        /// <remarks>Until LiftShare is fully implemented, this is irrelevant.</remarks>
        public bool OnSynchronize(object sender)
        {
#if WANTPORT // FWR-2845; this was not enabled in 6.0 and may be superseded by Randy's LiftBridge.
            Form formActive = ActiveForm;
            if (cache != null)
            {
                FwXWindow          wndActive = formActive as FwXWindow;
                LiftSynchronizeDlg dlg       = new LiftSynchronizeDlg(Cache, wndActive.Mediator);
                dlg.ShowDialog(formActive);
                return(true);
            }
            else
            {
                return(false);
            }
#else
            return(false);
#endif
        }