/// <summary> /// the function handles the search button /// </summary> /// <param name="sender"></param> /// <param name="e">search button clicked</param> private void click_Search(object sender, RoutedEventArgs e) { if (controller.currentUserEmail != "") { searchWindow search = new searchWindow(controller); search.Show(); } else { MessageBox.Show("you have to login first!", "EROR"); } }
private void click_Search(object sender, RoutedEventArgs e) { searchWindow search = new searchWindow(model); search.Show(); }