Пример #1
0
 public void SearchList()
 {
     Firmen.Clear();
     foreach (Models.Firma item in FirmenList)
     {
         if (item.Name.Contains(Suche))
         {
             Firmen.Add(item);
         }
     }
 }
Пример #2
0
        public void GeneralCommandMethod(object param)
        {
            switch (param as string)
            {
            case "Firma":
                Firmen.Clear();
                SearchFirma();
                Proxy.Instance.Send(data);
                Proxy.Instance.Receive();
                Proceed();
                break;

            case "Person":
                Personen.Clear();
                SearchPerson();
                Proxy.Instance.Send(data);
                Proxy.Instance.Receive();
                Proceed();
                break;

            case "Rechnung":
                Rechnungen.Clear();
                SearchRechnung();
                Proxy.Instance.Send(data);
                Proxy.Instance.Receive();
                Proceed();
                break;

            case "ViewFirma":
                lViewDoubleClickFirma();
                break;

            case "ViewRechnung":
                lViewDoubleClickRechnung();
                break;

            case "ViewPerson":
                lViewDoubleClickPerson();
                break;

            case "AddFirma":
                Firma = new Models.Firma();
                lViewDoubleClickFirma();
                break;

            case "AddPerson":
                Person = new Models.Person();
                lViewDoubleClickPerson();
                break;

            case "AddRechnung":
                Rechnung = new Models.Rechnung();
                lViewDoubleClickRechnung();
                break;

            case "SearchRechnungen":
                Rechnungen.Clear();
                SearchRechnung();
                Proxy.Instance.Send(data);
                Proxy.Instance.Receive();
                Proceed();
                break;

            case "DeleteFirma":
                DeleteFirma();
                Proxy.Instance.Send(data);
                Proxy.Instance.Receive();
                break;

            case "DeletePerson":
                DeletePerson();
                Proxy.Instance.Send(data);
                Proxy.Instance.Receive();
                break;

            default:
                //DetailedInformationWindow window = new DetailedInformationWindow();
                //window.Show();
                break;
            }
        }