/// ------------------------------------------------------------------------------------ /// <summary> /// /// </summary> /// ------------------------------------------------------------------------------------ protected bool OnViewOpened(object args) { try { if (args is SearchVw) { m_view = args as SearchVw; SetupAddOnToolbarButtons(); } } catch { } return(false); }
/// ------------------------------------------------------------------------------------ /// <summary> /// /// </summary> /// ------------------------------------------------------------------------------------ protected bool OnViewOpened(object args) { try { if (args.GetType() == typeof(PaMainWnd)) { m_mainWnd = args as PaMainWnd; } else if (args.GetType() == typeof(DataCorpusVw)) { m_dataCorpusVw = args as DataCorpusVw; } else if (args.GetType() == typeof(SearchVw)) { m_findPhoneWnd = args as SearchVw; } else if (args.GetType() == typeof(ConsonantChartVw)) { m_consonantChartWnd = args as ConsonantChartVw; } else if (args.GetType() == typeof(VowelChartVw)) { m_vowelChartWnd = args as VowelChartVw; } else if (args.GetType() == typeof(XYChartVw)) { m_xyChartWnd = args as XYChartVw; } else if (args.GetType() == typeof(PhoneInventoryVw)) { m_phoneInventoryWnd = args as PhoneInventoryVw; } } catch { } return(false); }