Beispiel #1
0
        private void frmDeckList_Load(object sender, EventArgs e)
        {
            switch (currentLanguage)
            {
            case 0:     //English
                CLanguage.DeckList.English englishLanguage = new CLanguage.DeckList.English();
                Main_Deck_Text           = englishLanguage.Main_Deck_Title;
                Extra_Deck_Text          = englishLanguage.Extra_Deck_Title;
                Side_Deck_Text           = englishLanguage.Side_Deck_Title;
                Error_Text               = englishLanguage.Error_Text;
                Deck_Error_Text          = englishLanguage.Deck_Error_Text;
                Load_Deck_Text           = englishLanguage.Load_Deck_Text;
                Copy_To_Clipboard_Text   = englishLanguage.Copy_To_Clipboard_Text;
                Copied_To_Clipboard_Text = englishLanguage.Copied_To_Clipboard_Text;
                Information_Text         = englishLanguage.Information_Text;
                this.Text = englishLanguage.Title;
                break;

            case 1:     //Thai
                CLanguage.DeckList.Thai thaiLanguage = new CLanguage.DeckList.Thai();
                Main_Deck_Text           = thaiLanguage.Main_Deck_Title;
                Extra_Deck_Text          = thaiLanguage.Extra_Deck_Title;
                Side_Deck_Text           = thaiLanguage.Side_Deck_Title;
                Error_Text               = thaiLanguage.Error_Text;
                Deck_Error_Text          = thaiLanguage.Deck_Error_Text;
                Load_Deck_Text           = thaiLanguage.Load_Deck_Text;
                Copy_To_Clipboard_Text   = thaiLanguage.Copy_To_Clipboard_Text;
                Copied_To_Clipboard_Text = thaiLanguage.Copied_To_Clipboard_Text;
                Information_Text         = thaiLanguage.Information_Text;
                this.Text = thaiLanguage.Title;
                break;

            default: break;
            }
            pbCard.ImageLocation    = Application.StartupPath + "\\textures\\cover.jpg";
            btnLoadDeck.Text        = Load_Deck_Text;
            btnCopyToClipboard.Text = Copy_To_Clipboard_Text;
        }
 private void frmDeckList_Load(object sender, EventArgs e)
 {
     switch (currentLanguage)
     {
         case 0: //English
             CLanguage.DeckList.English englishLanguage = new CLanguage.DeckList.English();
             Main_Deck_Text = englishLanguage.Main_Deck_Title;
             Extra_Deck_Text = englishLanguage.Extra_Deck_Title;
             Side_Deck_Text = englishLanguage.Side_Deck_Title;
             Error_Text = englishLanguage.Error_Text;
             Deck_Error_Text = englishLanguage.Deck_Error_Text;
             Load_Deck_Text = englishLanguage.Load_Deck_Text;
             Copy_To_Clipboard_Text = englishLanguage.Copy_To_Clipboard_Text;
             Copied_To_Clipboard_Text = englishLanguage.Copied_To_Clipboard_Text;
             Information_Text = englishLanguage.Information_Text;
             this.Text = englishLanguage.Title;
             break;
         case 1: //Thai
             CLanguage.DeckList.Thai thaiLanguage = new CLanguage.DeckList.Thai();
             Main_Deck_Text = thaiLanguage.Main_Deck_Title;
             Extra_Deck_Text = thaiLanguage.Extra_Deck_Title;
             Side_Deck_Text = thaiLanguage.Side_Deck_Title;
             Error_Text = thaiLanguage.Error_Text;
             Deck_Error_Text = thaiLanguage.Deck_Error_Text;
             Load_Deck_Text = thaiLanguage.Load_Deck_Text;
             Copy_To_Clipboard_Text = thaiLanguage.Copy_To_Clipboard_Text;
             Copied_To_Clipboard_Text = thaiLanguage.Copied_To_Clipboard_Text;
             Information_Text = thaiLanguage.Information_Text;
             this.Text = thaiLanguage.Title;
             break;
         default: break;
     }
     pbCard.ImageLocation = Application.StartupPath + "\\textures\\cover.jpg";
     btnLoadDeck.Text = Load_Deck_Text;
     btnCopyToClipboard.Text = Copy_To_Clipboard_Text;
 }