private void Form1_Load(object sender, EventArgs e) { if (file.Read("Application", "Background").Contains("dark")) { this.BackColor = ColorTranslator.FromHtml("#3E3E42"); } else { this.BackColor = Color.White; } if (file.Read("Application", "Language").Contains("turkish")) { bunifuToolTip1.SetToolTipTitle(bunifuImageButton1, "Kapat"); bunifuToolTip1.SetToolTip(bunifuImageButton1, "Bastığınızda kapatır."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton2, "Oyun"); bunifuToolTip1.SetToolTip(bunifuImageButton2, "Bastığınızda çeviriye özel kodlanmış oyunu açar.(Yapım Aşamasında)"); bunifuToolTip1.SetToolTipTitle(bunifuImageButton3, "Anasayfa"); bunifuToolTip1.SetToolTip(bunifuImageButton3, "Tıkladığınızda çeviri yerini açar."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton4, "Yapımcılar"); bunifuToolTip1.SetToolTip(bunifuImageButton4, "Tıkladığınızda Programın yapımcılarının\ngösterildiği yere gidersiniz."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton5, "Ayarlar"); bunifuToolTip1.SetToolTip(bunifuImageButton5, "Programın ayarlarına gider."); } else if (file.Read("Application", "Language").Contains("english")) { bunifuToolTip1.SetToolTipTitle(bunifuImageButton1, "Close"); bunifuToolTip1.SetToolTip(bunifuImageButton1, "The program closes."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton2, "Game"); bunifuToolTip1.SetToolTip(bunifuImageButton2, "Custom coded game opens up when you press A to turn.(Under Construction)"); bunifuToolTip1.SetToolTipTitle(bunifuImageButton3, "Homepage"); bunifuToolTip1.SetToolTip(bunifuImageButton3, "Clicking opens the location of the translation."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton4, "Producers"); bunifuToolTip1.SetToolTip(bunifuImageButton4, "You'll get shown where clicking the program's producers."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton5, "Settings"); bunifuToolTip1.SetToolTip(bunifuImageButton5, "Goes to the settings of the program."); } else if (file.Read("Application", "Language").Contains("arabic")) { bunifuToolTip1.SetToolTipTitle(bunifuImageButton1, "قريب"); bunifuToolTip1.SetToolTip(bunifuImageButton1, "إغلاق البرنامج."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton2, "لعبة"); bunifuToolTip1.SetToolTip(bunifuImageButton2, "مخصص مشفرة اللعبة يفتح عند الضغط على تشغيل.(تحت الإنشاء)"); bunifuToolTip1.SetToolTipTitle(bunifuImageButton3, "الصفحة الرئيسية"); bunifuToolTip1.SetToolTip(bunifuImageButton3, "النقر فوق فتح موقع الترجمة."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton4, "المنتجين"); bunifuToolTip1.SetToolTip(bunifuImageButton4, "ستحصل حيث أظهرت النقر على البرنامج المنتجين."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton5, "الإعدادات"); bunifuToolTip1.SetToolTip(bunifuImageButton5, "يذهب إلى إعدادات البرنامج."); } timer2.Start(); }
private void Messagebox_Load(object sender, EventArgs e) { SonsuzFile file = new SonsuzFile(Environment.CurrentDirectory + "/settings.ini"); if (file.Read("Application", "Background").Contains("dark")) { this.BackColor = ColorTranslator.FromHtml("#3E3E42"); } else { this.BackColor = Color.White; } if (file.Read("Application", "Language").Contains("turkish")) { label5.Text = "Adı Soyadı:"; label6.Text = "Discord Adresi:"; label7.Text = "Facebook Adresi:"; label3.Text = "Yardım Ettiği Hususlar:"; } else if (file.Read("Application", "Language").Contains("english")) { label5.Text = "Name Surname:"; label6.Text = "Discord Address:"; label7.Text = "Facebook Adress:"; label3.Text = "Helping matters:"; } else if (file.Read("Application", "Language").Contains("arabic")) { label5.Text = "اسم اللقب" + ":"; label6.Text = "الفتنة عنوان" + ":"; label7.Text = "Facebook عنوان" + ":"; label3.Text = "يساعد" + ":"; } else { label5.Text = "Adı Soyadı:"; label6.Text = "Discord Adresi:"; label7.Text = "Facebook Adresi:"; label3.Text = "Yardım Ettiği Hususlar:"; } timer2.Start(); }
private void Yapimcilar_Load(object sender, EventArgs e) { SonsuzFile file = new SonsuzFile(Environment.CurrentDirectory + "/settings.ini"); if (file.Read("Application", "Background").Contains("dark")) { this.BackColor = ColorTranslator.FromHtml("#3E3E42"); } else { this.BackColor = Color.White; } timer2.Start(); }
private void Oyun_soru_Load(object sender, EventArgs e) { int w = Screen.PrimaryScreen.Bounds.Width; int h = Screen.PrimaryScreen.Bounds.Height; this.Location = new Point(0, 0); this.Size = new Size(w, h); Random r = new Random(); int ra = r.Next(1, 10); string soru = file.Read("Game", "soru" + ra.ToString()); label1.Text = soru; switch (ra) { case 1: dogru = "a"; break; case 2: dogru = "c"; break; } }
public void yazi() { string dil = ini.Read("Application", "Language"); if (dil.Contains("turkish")) { bunifuTextBox1.Text = "Çevrilecek Metin"; bunifuTextBox2.Text = "Çevrilen Metin"; bunifuDropdown1.Text = "Türkçe"; bunifuDropdown2.Text = "İngilizce"; bunifuDropdown1.Items.Add("Arapça"); bunifuDropdown1.Items.Add("Almanca"); bunifuDropdown1.Items.Add("Fransızca"); bunifuDropdown1.Items.Add("İngilizce"); bunifuDropdown1.Items.Add("İspanyolca"); bunifuDropdown1.Items.Add("Korece"); bunifuDropdown1.Items.Add("Rusça"); bunifuDropdown1.Items.Add("Türkçe"); bunifuDropdown2.Items.Add("Arapça"); bunifuDropdown2.Items.Add("Almanca"); bunifuDropdown2.Items.Add("Fransızca"); bunifuDropdown2.Items.Add("İngilizce"); bunifuDropdown2.Items.Add("İspanyolca"); bunifuDropdown2.Items.Add("Korece"); bunifuDropdown2.Items.Add("Rusça"); bunifuDropdown2.Items.Add("Türkçe"); label1.Text = "Sonsuz"; label2.Text = "Çeviri"; bunifuToolTip1.SetToolTipTitle(bunifuTextBox1, "Çevrilecek metin"); bunifuToolTip1.SetToolTip(bunifuTextBox1, "Çevirmek istediğiniz kelimeyi buraya yazın \nya da sağdaki yapıştır butonunu kullanın"); bunifuToolTip1.SetToolTipTitle(bunifuTextBox2, "Çevrilen metin"); bunifuToolTip1.SetToolTip(bunifuTextBox2, "Çevrilen metnin gösterildiği yerdir.sağdan kopyalayabilirsiniz."); bunifuToolTip1.SetToolTipTitle(bunifuDropdown1, "Bu Dilden"); bunifuToolTip1.SetToolTip(bunifuDropdown1, "Çevrilicek dil burdan seçilir."); bunifuToolTip1.SetToolTipTitle(bunifuDropdown2, "Şu Dile"); bunifuToolTip1.SetToolTip(bunifuDropdown2, "Çevrilen dil buradan seçilir."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton1, "Geri"); bunifuToolTip1.SetToolTip(bunifuImageButton1, "Bastığınızda geri döner"); bunifuToolTip1.SetToolTipTitle(bunifuImageButton2, "Değiştir"); bunifuToolTip1.SetToolTip(bunifuImageButton2, "Dillerin yerini değiştirir."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton3, "Çevir"); bunifuToolTip1.SetToolTip(bunifuImageButton3, "Bastığınızda çevirir."); } else if (dil.Contains("english")) { bunifuTextBox1.Text = "The Text To Be Translated"; bunifuTextBox2.Text = "Translated Text"; bunifuDropdown1.Text = "English"; bunifuDropdown2.Text = "Turkish"; bunifuDropdown1.Items.Add("Arabic"); bunifuDropdown1.Items.Add("German"); bunifuDropdown1.Items.Add("French"); bunifuDropdown1.Items.Add("English"); bunifuDropdown1.Items.Add("Spanish"); bunifuDropdown1.Items.Add("Korean"); bunifuDropdown1.Items.Add("Russian"); bunifuDropdown1.Items.Add("Turkish"); bunifuDropdown2.Items.Add("Arabic"); bunifuDropdown2.Items.Add("German"); bunifuDropdown2.Items.Add("French"); bunifuDropdown2.Items.Add("English"); bunifuDropdown2.Items.Add("Spanish"); bunifuDropdown2.Items.Add("Korean"); bunifuDropdown2.Items.Add("Russian"); bunifuDropdown2.Items.Add("Turkish"); label1.Text = "Infinite"; label2.Text = "Translation"; bunifuToolTip1.SetToolTipTitle(bunifuTextBox1, "Text To Translate"); bunifuToolTip1.SetToolTip(bunifuTextBox1, "Type the text you want to translate\nhere or paste it from the right button."); bunifuToolTip1.SetToolTipTitle(bunifuTextBox2, "Translated Text"); bunifuToolTip1.SetToolTip(bunifuTextBox2, "Where the translated text is.If you want to read it,\ncopy it from the button on the right."); bunifuToolTip1.SetToolTipTitle(bunifuDropdown1, "From this language"); bunifuToolTip1.SetToolTip(bunifuDropdown1, "The language to translate is selected from here."); bunifuToolTip1.SetToolTipTitle(bunifuDropdown2, "This Language"); bunifuToolTip1.SetToolTip(bunifuDropdown2, "The language to translate is selected here."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton1, "Back"); bunifuToolTip1.SetToolTip(bunifuImageButton1, "When you press it, it returns."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton2, "Replace"); bunifuToolTip1.SetToolTip(bunifuImageButton2, "Move languages."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton3, "Translate"); bunifuToolTip1.SetToolTip(bunifuImageButton3, "When you press it, it translates."); } else if (dil.Contains("arabic")) { bunifuTextBox1.Text = "النص المراد ترجمته"; bunifuTextBox2.Text = "ترجمة النص"; bunifuDropdown1.Text = "العربية"; bunifuDropdown2.Text = "التركية"; bunifuDropdown1.Items.Add("العربية"); bunifuDropdown1.Items.Add("الألمانية"); bunifuDropdown1.Items.Add("الفرنسية"); bunifuDropdown1.Items.Add("اللغة الإنجليزية"); bunifuDropdown1.Items.Add("الإسبانية"); bunifuDropdown1.Items.Add("الكورية"); bunifuDropdown1.Items.Add("الروسية"); bunifuDropdown1.Items.Add("التركية"); bunifuDropdown2.Items.Add("العربية"); bunifuDropdown2.Items.Add("الألمانية"); bunifuDropdown2.Items.Add("الفرنسية"); bunifuDropdown2.Items.Add("اللغة الإنجليزية"); bunifuDropdown2.Items.Add("الإسبانية"); bunifuDropdown2.Items.Add("الكورية"); bunifuDropdown2.Items.Add("الروسية"); bunifuDropdown2.Items.Add("التركية"); label1.Text = "اللانهائية"; label2.Text = "الترجمة"; bunifuToolTip1.SetToolTipTitle(bunifuTextBox1, "النص المراد ترجمته"); bunifuToolTip1.SetToolTip(bunifuTextBox1, "اكتب الكلمة التي تريد ترجمتها ، أو استخدام معجون زر على اليمين"); bunifuToolTip1.SetToolTipTitle(bunifuTextBox2, "ترجمة النص"); bunifuToolTip1.SetToolTip(bunifuTextBox2, "النص المترجم هو مبين.يمكنك نسخ من الحق."); bunifuToolTip1.SetToolTipTitle(bunifuDropdown1, "من هذه اللغة"); bunifuToolTip1.SetToolTip(bunifuDropdown1, "هنا لغة للترجمة هو المحدد."); bunifuToolTip1.SetToolTipTitle(bunifuDropdown2, "لغة الماء"); bunifuToolTip1.SetToolTip(bunifuDropdown2, "ترجمة اللغة هي المحدد هنا."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton1, "مرة أخرى"); bunifuToolTip1.SetToolTip(bunifuImageButton1, "يتحول مرة أخرى عند الضغط"); bunifuToolTip1.SetToolTipTitle(bunifuImageButton2, "تغيير"); bunifuToolTip1.SetToolTip(bunifuImageButton2, "مكان اللغة التغييرات."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton3, "الوجه"); bunifuToolTip1.SetToolTip(bunifuImageButton3, "عند الضغط على المنعطفات."); } else { bunifuTextBox1.Text = "Çevrilecek Metin"; bunifuTextBox2.Text = "Çevrilen Metin"; bunifuDropdown1.Text = "Türkçe"; bunifuDropdown2.Text = "İngilizce"; bunifuDropdown1.Items.Add("Arapça"); bunifuDropdown1.Items.Add("Almanca"); bunifuDropdown1.Items.Add("Fransızca"); bunifuDropdown1.Items.Add("İngilizce"); bunifuDropdown1.Items.Add("İspanyolca"); bunifuDropdown1.Items.Add("Korece"); bunifuDropdown1.Items.Add("Rusça"); bunifuDropdown1.Items.Add("Türkçe"); bunifuDropdown2.Items.Add("Arapça"); bunifuDropdown2.Items.Add("Almanca"); bunifuDropdown2.Items.Add("Fransızca"); bunifuDropdown2.Items.Add("İngilizce"); bunifuDropdown2.Items.Add("İspanyolca"); bunifuDropdown2.Items.Add("Korece"); bunifuDropdown2.Items.Add("Rusça"); bunifuDropdown2.Items.Add("Türkçe"); label1.Text = "Sonsuz"; label2.Text = "Çeviri"; bunifuToolTip1.SetToolTipTitle(bunifuTextBox1, "Çevrilecek metin"); bunifuToolTip1.SetToolTip(bunifuTextBox1, "Çevirmek istediğiniz kelimeyi buraya yazın \nya da sağdaki yapıştır butonunu kullanın"); bunifuToolTip1.SetToolTipTitle(bunifuTextBox2, "Çevrilen metin"); bunifuToolTip1.SetToolTip(bunifuTextBox2, "Çevrilen metnin gösterildiği yerdir.sağdan kopyalayabilirsiniz."); bunifuToolTip1.SetToolTipTitle(bunifuDropdown1, "Bu Dilden"); bunifuToolTip1.SetToolTip(bunifuDropdown1, "Çevrilicek dil burdan seçilir."); bunifuToolTip1.SetToolTipTitle(bunifuDropdown2, "Şu Dile"); bunifuToolTip1.SetToolTip(bunifuDropdown2, "Çevrilen dil buradan seçilir."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton1, "Geri"); bunifuToolTip1.SetToolTip(bunifuImageButton1, "Bastığınızda geri döner"); bunifuToolTip1.SetToolTipTitle(bunifuImageButton2, "Değiştir"); bunifuToolTip1.SetToolTip(bunifuImageButton2, "Dillerin yerini değiştirir."); bunifuToolTip1.SetToolTipTitle(bunifuImageButton3, "Çevir"); bunifuToolTip1.SetToolTip(bunifuImageButton3, "Bastığınızda çevirir."); } }
private void Ayarlar_Load(object sender, EventArgs e) { timer2.Start(); if (dil().Contains("turkish")) { bunifuLabel1.Text = "Program Dili"; bunifuLabel2.Text = "Program Teması"; bunifuDropdown1.Text = "Türkçe"; bunifuDropdown2.Items.Add("Açık"); bunifuDropdown2.Items.Add("Koyu"); bunifuToolTip1.SetToolTipTitle(this.bunifuImageButton1, "Kaydet"); if (file.Read("Application", "Background").Contains("light")) { bunifuDropdown2.Text = "Light"; this.BackColor = Color.White; bunifuLabel1.ForeColor = Color.Blue; bunifuLabel2.ForeColor = Color.Blue; bunifuDropdown1.Color = light; bunifuDropdown1.ForeColor = light; bunifuDropdown1.IndicatorColor = light; bunifuDropdown1.ItemBorderColor = light; bunifuDropdown1.ItemForeColor = light; bunifuDropdown2.Color = light; bunifuDropdown2.ForeColor = light; bunifuDropdown2.IndicatorColor = light; bunifuDropdown2.ItemBorderColor = light; bunifuDropdown2.ItemForeColor = light; } else { bunifuDropdown2.Text = "Dark"; this.BackColor = ColorTranslator.FromHtml("#3E3E42"); bunifuLabel1.ForeColor = Color.Red; bunifuLabel2.ForeColor = Color.Red; bunifuDropdown1.Color = dark; bunifuDropdown1.ForeColor = dark; bunifuDropdown1.IndicatorColor = dark; bunifuDropdown1.ItemBorderColor = dark; bunifuDropdown1.ItemForeColor = dark; bunifuDropdown2.Color = dark; bunifuDropdown2.ForeColor = dark; bunifuDropdown2.IndicatorColor = dark; bunifuDropdown2.ItemBorderColor = dark; bunifuDropdown2.ItemForeColor = dark; } } else if (dil().Contains("english")) { bunifuLabel1.Text = "Application Language"; bunifuLabel2.Text = "Application Theme"; bunifuDropdown1.Text = "English"; bunifuToolTip1.SetToolTipTitle(this.bunifuImageButton1, "Save"); if (file.Read("Application", "Background").Contains("light")) { bunifuDropdown2.Text = "Light"; this.BackColor = Color.White; bunifuLabel1.ForeColor = Color.Blue; bunifuLabel2.ForeColor = Color.Blue; bunifuDropdown1.Color = light; bunifuDropdown1.ForeColor = light; bunifuDropdown1.IndicatorColor = light; bunifuDropdown1.ItemBorderColor = light; bunifuDropdown1.ItemForeColor = light; bunifuDropdown2.Color = light; bunifuDropdown2.ForeColor = light; bunifuDropdown2.IndicatorColor = light; bunifuDropdown2.ItemBorderColor = light; bunifuDropdown2.ItemForeColor = light; } else { bunifuDropdown2.Text = "Dark"; this.BackColor = ColorTranslator.FromHtml("#3E3E42"); bunifuLabel1.ForeColor = Color.Red; bunifuLabel2.ForeColor = Color.Red; bunifuDropdown1.Color = dark; bunifuDropdown1.ForeColor = dark; bunifuDropdown1.IndicatorColor = dark; bunifuDropdown1.ItemBorderColor = dark; bunifuDropdown1.ItemForeColor = dark; bunifuDropdown2.Color = dark; bunifuDropdown2.ForeColor = dark; bunifuDropdown2.IndicatorColor = dark; bunifuDropdown2.ItemBorderColor = dark; bunifuDropdown2.ItemForeColor = dark; } bunifuDropdown2.Items.Add("Light"); bunifuDropdown2.Items.Add("Dark"); } else if (dil().Contains("arabic")) { bunifuLabel1.Text = "لغة التطبيق"; bunifuLabel2.Text = "موضوع التطبيق"; bunifuDropdown1.Text = "العربية"; bunifuToolTip1.SetToolTipTitle(this.bunifuImageButton1, "احفظ"); if (file.Read("Application", "Background").Contains("light")) { bunifuDropdown2.Text = "الضوء"; this.BackColor = Color.White; bunifuLabel1.ForeColor = Color.Blue; bunifuLabel2.ForeColor = Color.Blue; bunifuDropdown1.Color = light; bunifuDropdown1.ForeColor = light; bunifuDropdown1.IndicatorColor = light; bunifuDropdown1.ItemBorderColor = light; bunifuDropdown1.ItemForeColor = light; bunifuDropdown2.Color = light; bunifuDropdown2.ForeColor = light; bunifuDropdown2.IndicatorColor = light; bunifuDropdown2.ItemBorderColor = light; bunifuDropdown2.ItemForeColor = light; } else { bunifuDropdown2.Text = "الظلام"; this.BackColor = ColorTranslator.FromHtml("#3E3E42"); bunifuLabel1.ForeColor = Color.Red; bunifuLabel2.ForeColor = Color.Red; bunifuDropdown1.Color = dark; bunifuDropdown1.ForeColor = dark; bunifuDropdown1.IndicatorColor = dark; bunifuDropdown1.ItemBorderColor = dark; bunifuDropdown1.ItemForeColor = dark; bunifuDropdown2.Color = dark; bunifuDropdown2.ForeColor = dark; bunifuDropdown2.IndicatorColor = dark; bunifuDropdown2.ItemBorderColor = dark; bunifuDropdown2.ItemForeColor = dark; } bunifuDropdown2.Items.Add("الضوء"); bunifuDropdown2.Items.Add("الظلام"); } else { bunifuLabel1.Text = "Program Dili"; bunifuLabel2.Text = "Program Teması"; bunifuDropdown1.Text = "Türkçe"; bunifuDropdown2.Items.Add("Açık"); bunifuDropdown2.Items.Add("Koyu"); bunifuToolTip1.SetToolTipTitle(this.bunifuImageButton1, "Kaydet"); if (file.Read("Application", "Background").Contains("light")) { bunifuDropdown2.Text = "Light"; this.BackColor = Color.White; bunifuLabel1.ForeColor = Color.Blue; bunifuLabel2.ForeColor = Color.Blue; bunifuDropdown1.Color = light; bunifuDropdown1.ForeColor = light; bunifuDropdown1.IndicatorColor = light; bunifuDropdown1.ItemBorderColor = light; bunifuDropdown1.ItemForeColor = light; bunifuDropdown2.Color = light; bunifuDropdown2.ForeColor = light; bunifuDropdown2.IndicatorColor = light; bunifuDropdown2.ItemBorderColor = light; bunifuDropdown2.ItemForeColor = light; } else { bunifuDropdown2.Text = "Dark"; this.BackColor = ColorTranslator.FromHtml("#3E3E42"); bunifuLabel1.ForeColor = Color.Red; bunifuLabel2.ForeColor = Color.Red; bunifuDropdown1.Color = dark; bunifuDropdown1.ForeColor = dark; bunifuDropdown1.IndicatorColor = dark; bunifuDropdown1.ItemBorderColor = dark; bunifuDropdown1.ItemForeColor = dark; bunifuDropdown2.Color = dark; bunifuDropdown2.ForeColor = dark; bunifuDropdown2.IndicatorColor = dark; bunifuDropdown2.ItemBorderColor = dark; bunifuDropdown2.ItemForeColor = dark; } } }