private void IndexingMaterialDataBaseCheckBox_Checked (object sender, RoutedEventArgs e) { if (IndexingMaterialDataBaseCheckBox.IsChecked == false) return; this.Cursor = Cursors.Wait; if (m_MaterialViewer != null) m_MaterialViewer.Close (); m_MaterialViewer = new MaterialViewer (); m_MaterialViewer.WordUpID = WordUpID; m_MaterialViewer.WordUpName = WordUpName; m_MaterialViewer.FremdArbeitsgruppenID = WordUp23.Basics.Instance.FremdZustaendigID; m_MaterialViewer.Show (); if (m_ProjectSelectionWindow != null) m_ProjectSelectionWindow.Close (); m_ProjectSelectionWindow = new ProjectSelectionWindow (); m_ProjectSelectionWindow.SelectionDoneCall += new ProjectSelectionWindow.SelectionDoneEvent (m_ProjectSelectionWindow_SelectionDoneCall); m_ProjectSelectionWindow.WordUpID = WordUpID; m_ProjectSelectionWindow.WordUpName = WordUpName; m_ProjectSelectionWindow.FremdArbeitsgruppenID = WordUp23.Basics.Instance.FremdZustaendigID; m_ProjectSelectionWindow.Show (); IndexingMaterialDataBaseCheckBox.IsChecked = false; this.Cursor = Cursors.Arrow; }
private void DataIndexing_Unloaded (object sender, RoutedEventArgs e) { if (m_ProjectSelectionWindow != null) m_ProjectSelectionWindow.Close (); m_ProjectSelectionWindow = null; if (m_MaterialViewer != null) m_MaterialViewer.Close (); m_MaterialViewer = null; }