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); }
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); }
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; }