private void ChangeIdentifyLableState(Label_state state) { switch (state) { case Label_state.Valid: IdentifiedLabel.Content = "Plik zidentyfikowany"; IdentifiedLabel.Background = Brushes.LightGreen; break; case Label_state.Invalid: IdentifiedLabel.Content = "Plik nie zidentyfikowany"; IdentifiedLabel.Background = Brushes.IndianRed; break; case Label_state.Clear: IdentifiedLabel.Content = ""; IdentifiedLabel.Background = Brushes.White; break; } }
private void ChangeFoundLabelState(Label_state state) { string fileName = _globalManager.FileManager.FindName; fileName = char.ToUpper(fileName[0]) + fileName.Substring(1); switch (state) { case Label_state.Valid: SomethingFoundLabel.Content = fileName + " znaleziony"; SomethingFoundLabel.Background = Brushes.LightGreen; break; case Label_state.Invalid: SomethingFoundLabel.Content = fileName + " nie znaleziony"; SomethingFoundLabel.Background = Brushes.IndianRed; break; case Label_state.Clear: SomethingFoundLabel.Content = ""; SomethingFoundLabel.Background = Brushes.White; break; } }