private void SearchBarAppear(object sender, RoutedEventArgs e) { if (WindowMode == 0 && ActiveUser.UserType != 4) { var w = new wnSearch(ActiveUser.UserType);//argument is a type of user w.Owner = this; w.Show(); this.IsEnabled = true; } }
private void SearchBarAppear(object sender, RoutedEventArgs e) { if(WindowMode == 0 && ActiveUser.UserType != 4) { var w = new wnSearch(ActiveUser.UserType);//argument is a type of user w.Owner = this; w.Show(); this.IsEnabled = true; } }