Beispiel #1
0
 private void showSavedFilterWindow(object sender, MouseButtonEventArgs e)
 {
     if (model.Filters.Count >= 1)
     {
         var         filter            = model.Filters.First();
         FilternNach filternNachWindow = new FilternNach(new FilterAttributesModel(model.database, model.Clerk));
         filternNachWindow.filterModel.Filtername       = filter.FilterName;
         filternNachWindow.filterModel.StartDate        = filter.MinDate;
         filternNachWindow.filterModel.EndDate          = filter.MaxDate;
         filternNachWindow.filterModel.Sender           = filter.Sender;
         filternNachWindow.filterModel.Receiver         = filter.Receiver;
         filternNachWindow.filterModel.SenderPostcode   = filter.SenderZIP;
         filternNachWindow.filterModel.ReceiverPostcode = filter.ReceiverZIP;
         filternNachWindow.filterModel.BriefChecked     = filter.isLetter;
         filternNachWindow.filterModel.EmailChecked     = filter.isEmail;
         filternNachWindow.filterModel.RsaChecked       = filter.isRsA;
         filternNachWindow.filterModel.RsbChecked       = filter.isRsB;
         filternNachWindow.Show();
     }
     else
     {
         MessageBox.Show($"Kein Filter vorhanden!");
     }
 }
        private void metroTile8_Click(object sender, EventArgs e)
        {
            FilternNach filternNachWindow = new FilternNach(filterModel);

            filternNachWindow.Show();
        }
Beispiel #3
0
        private void showFilterWindow(object sender, MouseButtonEventArgs e)
        {
            FilternNach filternNachWindow = new FilternNach(new FilterAttributesModel(model.database, model.Clerk));

            filternNachWindow.Show();
        }