示例#1
0
 /// <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");
     }
 }
示例#2
0
        private void click_Search(object sender, RoutedEventArgs e)
        {
            searchWindow search = new searchWindow(model);

            search.Show();
        }