private void program_option(object sender, RoutedEventArgs e) { OptionWindow optionWindow = new OptionWindow(); optionWindow.Owner = this; if (TaskWindow.WindowOpened && MiningSpace.WindowOpened && OptionWindow.WindowOpened && MiningCalc.WindowOpened) { optionWindow.Show(); OptionWindow.WindowOpened = false; } }
public static void Language2_action_optionwindow(OptionWindow w) { w.Theme1.Count = "Оригинальный голубой"; w.Theme2.Count = "Лаймово зеленый"; w.Theme3.Count = "Огненно рыжий"; w.Theme4.Count = "Полуночная пустота"; w.LeftText.Text = "Выбор языка"; w.RightText.Text = "Выбор стиля"; w.OptionWindowName.Title = "Окно настроек"; choosenlang = 2; DbActions.LanguageSet(); }
//option window public static void Language1_action_optionwindow(OptionWindow w) { w.Theme1.Count = "Original blue"; w.Theme2.Count = "Lime green"; w.Theme3.Count = "Fiery red"; w.Theme4.Count = "Nocturnal void"; w.LeftText.Text = "Switch language"; w.RightText.Text = "Switch style"; w.OptionWindowName.Title = "Settings window"; choosenlang = 1; DbActions.LanguageSet(); }
public static void Language4_action_optionwindow(OptionWindow w) { w.Theme1.Count = "原蓝色"; w.Theme2.Count = "柠檬绿"; w.Theme3.Count = "火红的"; w.Theme4.Count = "夜间无效"; w.LeftText.Text = "切换语言"; w.RightText.Text = "切换风格"; w.OptionWindowName.Title = "设置窗口"; choosenlang = 1; DbActions.LanguageSet(); choosenlang = 4; DbActions.LanguageSet(); }
public static void Language3_action_optionwindow(OptionWindow w) { w.Theme1.Count = "Original blau"; w.Theme2.Count = "Lindgrün"; w.Theme3.Count = "Feuriges Rot"; w.Theme4.Count = "Nächtliche Leere"; w.LeftText.Text = "Sprache umstellen"; w.RightText.Text = "Stil wechseln"; w.OptionWindowName.Title = "Einstellungs fenster"; choosenlang = 1; DbActions.LanguageSet(); choosenlang = 3; DbActions.LanguageSet(); }
public static void Theme4_action_optionwindow(OptionWindow w) { w.Englishtile.Background = Brushes.DarkSlateBlue; w.Russiantile.Background = Brushes.DarkSlateBlue; w.Germantile.Background = Brushes.DarkSlateBlue; w.Chinesetile.Background = Brushes.DarkSlateBlue; w.LeftStackpanel.Background = Brushes.SlateGray; w.RightStackpanel.Background = Brushes.SlateGray; w.CenterStackpanel.Background = Brushes.DarkSlateGray; w.OptionWindowName.WindowTitleBrush = Brushes.MidnightBlue; w.LeftText.Foreground = Brushes.LightGray; w.RightText.Foreground = Brushes.LightGray; choosenstyle = 4; DbActions.StyleSet(); }
public static void Theme3_action_optionwindow(OptionWindow w) { w.Englishtile.Background = Brushes.DarkSalmon; w.Russiantile.Background = Brushes.DarkSalmon; w.Germantile.Background = Brushes.DarkSalmon; w.Chinesetile.Background = Brushes.DarkSalmon; w.LeftStackpanel.Background = Brushes.PeachPuff; w.RightStackpanel.Background = Brushes.PeachPuff; w.CenterStackpanel.Background = Brushes.LightSalmon; w.OptionWindowName.WindowTitleBrush = Brushes.Firebrick; w.LeftText.Foreground = Brushes.Black; w.RightText.Foreground = Brushes.Black; choosenstyle = 3; DbActions.StyleSet(); }
public static void Theme2_action_optionwindow(OptionWindow w) { w.Englishtile.Background = Brushes.LightGreen; w.Russiantile.Background = Brushes.LightGreen; w.Germantile.Background = Brushes.LightGreen; w.Chinesetile.Background = Brushes.LightGreen; w.LeftStackpanel.Background = Brushes.LemonChiffon; w.RightStackpanel.Background = Brushes.LemonChiffon; w.CenterStackpanel.Background = Brushes.PaleGoldenrod; w.OptionWindowName.WindowTitleBrush = Brushes.OliveDrab; w.LeftText.Foreground = Brushes.Black; w.RightText.Foreground = Brushes.Black; choosenstyle = 2; DbActions.StyleSet(); }
//-----------------------OPTION WINDOW public static void Theme1_action_optionwindow(OptionWindow w) { w.Englishtile.Background = Brushes.LightSteelBlue; w.Russiantile.Background = Brushes.LightSteelBlue; w.Germantile.Background = Brushes.LightSteelBlue; w.Chinesetile.Background = Brushes.LightSteelBlue; w.LeftStackpanel.Background = Brushes.Lavender; w.RightStackpanel.Background = Brushes.Lavender; w.CenterStackpanel.Background = Brushes.LightGray; w.OptionWindowName.WindowTitleBrush = Brushes.DeepSkyBlue; w.LeftText.Foreground = Brushes.Black; w.RightText.Foreground = Brushes.Black; choosenstyle = 1; DbActions.StyleSet(); }