Esempio n. 1
0
        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            bool setPolishCulture = (sender == PolishItem);

            CultureResources.ChangeCulture(new CultureInfo(setPolishCulture ? "pl" : "en"));
            PolishItem.IsChecked  = setPolishCulture;
            EnglishItem.IsChecked = !setPolishCulture;
            UpdateStatusLabel();
        }
Esempio n. 2
0
        public MainWindow()
        {
            CultureResources.ChangeCulture(Properties.Settings.Default.DefaultCulture);

            InitializeComponent();
            UpdateStatusLabel();
            fillBorder.Background      = Fill;
            countorBorder.Background   = Countor;
            ComboBoxSize.SelectedIndex = 0;
            ComboBoxType.SelectedIndex = 0;
            canvas.MouseMove          += canvas_MouseMove;
            canvas.MouseUp            += canvas_MouseUp;
            canvas.MouseDown          += canvas_MouseDown;
            SizeCanvas.SelectedIndex   = 0;
        }