Exemple #1
0
        public UcBasisModul(string modulName, string tabellenName, bool halfSize, bool resultModul)
        {
            InitializeComponent();
            _resultModul = resultModul;

            ChangeModul();



            uiLbModulName.Content = modulName;
            this.tabellenName     = tabellenName;

            _halfSize = halfSize;

            if (_halfSize)
            {
                uiLbModulName.FontSize   = 20;
                uiLbModulName.FontWeight = FontWeights.Medium;
            }

            SetVerticalGridLines();

            SetDgColumns();
            SetTextFields();
            SetComboBoxes();

            CloseUiGrEdit();
            status = OpenState.closed;


            uiDgObjekte.ItemsSource = Datenverwaltung.GetSearchResultsFromTable(tabellenName);
        }
Exemple #2
0
        public EasyMod(UcDrucken druck)
        {
            InitializeComponent();
            SetArtikel();
            uiDruck = druck;

            uiTbModell.ItemsSource  = Datenverwaltung.GetSearchResultsFromTable("Modell_mod");
            uiTbGroesse.ItemsSource = Datenverwaltung.GetSearchResultsFromTable("Groesse_gro");
            uiTbFarbe.ItemsSource   = Datenverwaltung.GetSearchResultsFromTable("Farbe_fab");
        }
Exemple #3
0
 internal override void CheckDeleteButton()
 {
     if (Datenverwaltung.GetSearchResultsFromTable("Artikel_art").Count == 0)
     {
         uiBtLoeschen.IsEnabled = true;
     }
     else
     {
         uiBtLoeschen.IsEnabled = false;
     }
 }
Exemple #4
0
        public void DisplaySearchResult()
        {
            foreach (var column in uiDgObjekte.Columns)
            {
                column.SortDirection = null;// System.ComponentModel.ListSortDirection.;
            }

            uiDgObjekte.ItemsSource = null;
            uiDgObjekte.ItemsSource = Datenverwaltung.GetSearchResultsFromTable(tabellenName);

            uiDgObjekte.Items.Refresh();

            uiDgObjekte.Items.Refresh();
            CloseUiGrEdit();
            uiDgObjekte.SelectedItems.Clear();
            foreach (var record in Datenverwaltung.GetSelectedObjects(tabellenName))
            {
                uiDgObjekte.SelectedItems.Add(record);
            }
        }