private void Page_Unloaded (object sender, RoutedEventArgs e) { m_FullShowWindow.ForceClosing (); if (m_FullShowWindow.IsLoaded == true) m_FullShowWindow.Close (); m_FullShowWindow = null; }
private void Page_Loaded (object sender, RoutedEventArgs e) { if ((Roles.IsUserInRole ("EventsAll")) || (Roles.IsUserInRole ("EventsSelected"))) { EventsTabItem.Visibility = Visibility.Visible; } FillOrganisatiosTypenListBox (m_StartupOrganisation); m_FullShowWindow = new ShowFullOrganisationWindow (); m_FullShowWindow.InitializeMe (m_Bereich, DataBase, m_StatusCallBackHandler); }
private void BereichsSelektionListBox_SelectionChanged (object sender, SelectionChangedEventArgs e) { if (BereichsSelektionListBox.SelectedItem == null) return; SetBereich (((ListBoxItem)BereichsSelektionListBox.SelectedItem).Content.ToString ()); if (m_FullShowWindow.IAmClosedBefore ) { m_FullShowWindow = new ShowFullOrganisationWindow (); } m_FullShowWindow.InitializeMe (m_Bereich, DataBase, m_StatusCallBackHandler); if (m_FullShowWindow.IsLoaded == false) { m_FullShowWindow.Show (); } }