Пример #1
0
        //Button Exit Enter
        private void btEnter_Click(object sender, RoutedEventArgs e)
        {
            string str = "";
            if (sender == btEnter)
            {
                str = "visit";

            }
            else if (sender == btExit)
            {
                str = "exit";
            }
            Search s = new Search(str);
            s.Number += new DelEvent(wd.Enter);

            if (s.ShowDialog() == false)
                return;

            var qwe = from t in wd.infoClients()
                      where workDataFunk.lsClient.ContainsKey(t.ID)
                      select new { name = t.Name, card = t.Card, dateoff = t.Dateoff, sex = t.Sex, Abonement = t.Abonement, count = t.Count };

            lbCount.Content = qwe.ToArray().Count();

            list.ItemsSource = qwe.ToArray();
        }
Пример #2
0
 //delete client
 private void MenuItem_Click_1(object sender, RoutedEventArgs e)
 {
     Search s = new Search("delete");
     s.ShowDialog();
 }