Summary description for SwapLexemeWithAllomorphDlg.
Inheritance: System.Windows.Forms.Form, IFWDisposable
Exemplo n.º 1
0
        public virtual bool OnSwapLexemeWithAllomorph(object cmd)
        {
            ILexEntry entry = m_dataEntryForm.Root as ILexEntry;
            FdoCache  cache = m_dataEntryForm.Cache;

            if (entry != null)
            {
                Form mainWindow = (Form)m_mediator.PropertyTable.GetValue("window");
                mainWindow.Cursor = Cursors.WaitCursor;
                using (SwapLexemeWithAllomorphDlg dlg = new SwapLexemeWithAllomorphDlg())
                {
                    dlg.SetDlgInfo(cache, m_mediator, entry);
                    if (DialogResult.OK == dlg.ShowDialog(mainWindow))
                    {
                        SwapAllomorphWithLexeme(entry, dlg.SelectedAllomorph, cmd as Command);
                    }
                }
                mainWindow.Cursor = Cursors.Default;
            }
            return(true);
        }
Exemplo n.º 2
0
        public virtual bool OnSwapLexemeWithAllomorph(object cmd)
        {
            ILexEntry entry = m_dataEntryForm.Root as ILexEntry;
            LcmCache  cache = m_dataEntryForm.Cache;

            if (entry != null)
            {
                Form mainWindow = m_propertyTable.GetValue <Form>("window");
                using (new WaitCursor(mainWindow))
                {
                    using (SwapLexemeWithAllomorphDlg dlg = new SwapLexemeWithAllomorphDlg())
                    {
                        dlg.SetDlgInfo(cache, m_propertyTable, entry);
                        if (DialogResult.OK == dlg.ShowDialog(mainWindow))
                        {
                            SwapAllomorphWithLexeme(entry, dlg.SelectedAllomorph, cmd as Command);
                        }
                    }
                }
            }
            return(true);
        }
Exemplo n.º 3
0
		public virtual bool OnSwapLexemeWithAllomorph(object cmd)
		{
			ILexEntry entry = m_dataEntryForm.Root as ILexEntry;
			FdoCache cache = m_dataEntryForm.Cache;
			if (entry != null)
			{
				Form mainWindow = (Form)m_mediator.PropertyTable.GetValue("window");
				using (new WaitCursor(mainWindow))
				{
					using (SwapLexemeWithAllomorphDlg dlg = new SwapLexemeWithAllomorphDlg())
					{
						dlg.SetDlgInfo(cache, m_mediator, entry);
						if (DialogResult.OK == dlg.ShowDialog(mainWindow))
						{
							SwapAllomorphWithLexeme(entry, dlg.SelectedAllomorph, cmd as Command);
						}
					}
				}
			}
			return true;
		}