コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: Palczak/HexChanger
        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;
            }
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: Palczak/HexChanger
        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;
            }
        }