Пример #1
0
 private void button_confirm_Click(object sender, RoutedEventArgs e)
 {
     if (RdoRomaCV.IsChecked == true || RdoRomaVCV.IsChecked == true || RdoKanaCV.IsChecked == true || RdoKanaVCV.IsChecked == true)
     {
         if (Rdo2RomaCV.IsChecked == true || Rdo2RomaVCV.IsChecked == true || Rdo2KanaCV.IsChecked == true || Rdo2KanaVCV.IsChecked == true)
         {
             if (RdoRomaCV.IsChecked == true)
             {
                 fromType = Lyric.LyricType.Romaji_Tandoku;
             }
             else if (RdoRomaVCV.IsChecked == true)
             {
                 fromType = Lyric.LyricType.Romaji_Renzoku;
             }
             else if (RdoKanaCV.IsChecked == true)
             {
                 fromType = Lyric.LyricType.Kana_Tandoku;
             }
             else if (RdoKanaVCV.IsChecked == true)
             {
                 fromType = Lyric.LyricType.Kana_Renzoku;
             }
             if (Rdo2RomaCV.IsChecked == true)
             {
                 ToType = Lyric.LyricType.Romaji_Tandoku;
             }
             else if (Rdo2RomaVCV.IsChecked == true)
             {
                 ToType = Lyric.LyricType.Romaji_Renzoku;
             }
             else if (Rdo2KanaCV.IsChecked == true)
             {
                 ToType = Lyric.LyricType.Kana_Tandoku;
             }
             else if (Rdo2KanaVCV.IsChecked == true)
             {
                 ToType = Lyric.LyricType.Kana_Renzoku;
             }
             DialogResult = true;
             Close();
             return;
         }
     }
     DialogResult = false;
     MessageBox.Show("Please select the types correctly.", "Lyrics Transformation");
 }
Пример #2
0
 private void ButtonConfirm_Click(object sender, RoutedEventArgs e)
 {
     if (RadioButtonFrom1.IsChecked == true || RadioButtonFrom2.IsChecked == true || RadioButtonFrom3.IsChecked == true || RadioButtonFrom4.IsChecked == true)
     {
         if (RadioButtonTo1.IsChecked == true || RadioButtonTo2.IsChecked == true || RadioButtonTo3.IsChecked == true || RadioButtonTo4.IsChecked == true)
         {
             if (RadioButtonFrom1.IsChecked == true)
             {
                 fromType = Lyric.LyricType.RomajiTandoku;
             }
             else if (RadioButtonFrom2.IsChecked == true)
             {
                 fromType = Lyric.LyricType.RomajiRenzoku;
             }
             else if (RadioButtonFrom3.IsChecked == true)
             {
                 fromType = Lyric.LyricType.KanaTandoku;
             }
             else if (RadioButtonFrom4.IsChecked == true)
             {
                 fromType = Lyric.LyricType.KanaRenzoku;
             }
             if (RadioButtonTo1.IsChecked == true)
             {
                 ToType = Lyric.LyricType.RomajiTandoku;
             }
             else if (RadioButtonTo2.IsChecked == true)
             {
                 ToType = Lyric.LyricType.RomajiRenzoku;
             }
             else if (RadioButtonTo3.IsChecked == true)
             {
                 ToType = Lyric.LyricType.KanaTandoku;
             }
             else if (RadioButtonTo4.IsChecked == true)
             {
                 ToType = Lyric.LyricType.KanaRenzoku;
             }
             DialogResult = true;
             Close();
             return;
         }
     }
     DialogResult = false;
     MessageBox.Show("Please select the types correctly.", "Lyrics Transformation");
 }