Jelajahi Sumber

Исправлен восточный календарь

ПроваленкоЛН 2 bulan lalu
induk
melakukan
2c018630a0
1 mengubah file dengan 8 tambahan dan 49 penghapusan
  1. 8 49
      AvaloniaApplication1/MainWindow.axaml.cs

+ 8 - 49
AvaloniaApplication1/MainWindow.axaml.cs

@@ -126,55 +126,14 @@ namespace AvaloniaApplication1
                 if(Vost.IsChecked == true)
                 {
                     string Zod = " ";
-                    if(year == 1971 || year == 1983 || year == 1995 || year == 2007 || year == 2019 || year == 2031)
-                    {
-                        Zod = "Ñâèíüÿ";
-                    }
-                    if (year == 1972 || year == 1984 || year == 1996 || year == 2008 || year == 2020 || year == 1960)
-                    {
-                        Zod = "Êðûñà";
-                    }
-                    if (year == 1973 || year == 1985 || year == 1997 || year == 2009 || year == 2021 || year == 1961)
-                    {
-                        Zod = "Áûê";
-                    }
-                    if (year == 1974 || year == 1986 || year == 1998 || year == 2010 || year == 2022 || year == 1962)
-                    {
-                        Zod = "Òèãð";
-                    }
-                    if (year == 1975 || year == 1987 || year == 1999 || year == 2011 || year == 2023 || year == 1963)
-                    {
-                        Zod = "Êðîëèê";
-                    }
-                    if (year == 1976 || year == 1988 || year == 2000 || year == 2012 || year == 2024 || year == 1964)
-                    {
-                        Zod = "Äðàêîí";
-                    }
-                    if (year == 1977 || year == 1989 || year == 2001 || year == 2013 || year == 2025 || year == 1965)
-                    {
-                        Zod = "Çìåÿ";
-                    }
-                    if (year == 1978 || year == 1990 || year == 2002 || year == 2014 || year == 2026 || year == 1966)
-                    {
-                        Zod = "Ëîøàäü";
-                    }
-                    if (year == 1979 || year == 1991 || year == 2003 || year == 2015 || year == 2027 || year == 1967)
-                    {
-                        Zod = "Êîíü";
-                    }
-                    if (year == 1980 || year == 1992 || year == 2004 || year == 2016 || year == 2028 || year == 1968)
-                    {
-                        Zod = "Îáåçüÿíà";
-                    }
-                    if (year == 1981 || year == 1993 || year == 2005 || year == 2017 || year == 2029 || year == 1969)
-                    {
-                        Zod = "Ïåòóõ";
-                    }
-                    if (year == 1982 || year == 1994 || year == 2006 || year == 2018 || year == 2030 || year == 1970)
-                    {
-                        Zod = "Ñîáàêà";
-                    }
-                    Znak.Text = "Çíàê âîñòî÷íîãî êàëåíäàðÿ: " + Zod;
+                    string[] ZnakV = new string[]
+                    {
+                        "Êðûñà", "Áûê", "Òèãð", "Êðîëèê", "Äðàêîí",
+                        "Çìåÿ", "Ëîøàäü", "Êîçà", "Îáåçüÿíà", "Ïåòóõ",
+                        "Ñîáàêà", "Ñâèíüÿ"
+                    };
+                    int index = (year-4) % 12;
+                    Znak.Text = "Çíàê âîñòî÷íîãî êàëåíäàðÿ: " + ZnakV[index];
                 }
                 if (Zod.IsChecked == true)
                 {