예제 #1
0
        private void CropWindow_Closing(object sender, CancelEventArgs e)
        {
            var oP = new OptionsProperties();

            oP.SetOption("ContourThickness", SecimValue.Value);
            oP.SetOption("SuccessRate", DogrulukValue.Value);
            ContourOptions.SaveOption("AdaptiveThresholdBlockSize", DetailSlider.Value);
        }
예제 #2
0
        private void CropWindow_Loaded(object sender, RoutedEventArgs e)
        {
            var oP = new OptionsProperties();

            SecimValue.Value    = oP.GetOption <double>("ContourThickness");
            DogrulukValue.Value = oP.GetOption <double>("SuccessRate");
            DetailSlider.Value  = ContourOptions.GetOption <double>("AdaptiveThresholdBlockSize");
        }
예제 #3
0
        /// <summary>
        /// Configures the options properties.
        /// </summary>
        private void ConfigureOptionsProperties()
        {
            var air = new Dictionary <string, string>();

            air.Add("centralair", "Central Air");
            air.Add("windowunit", "Window Unit");
            air.Add("evaporativecooler", "Evaporative Cooler");
            air.Add("other", "Other");
            OptionsProperties.Add("Air Conditioning", air);
        }
예제 #4
0
        /// <summary>
        /// Configures the options properties.
        /// </summary>
        private void ConfigureOptionsProperties()
        {
            /*
             * Dictionary<string, string> coveredParking = new Dictionary<string, string>();
             * coveredParking.Add("coveredparking2cars", "2 Cars");
             * coveredParking.Add("coveredparking3cars", "3 Cars");
             * this.OptionsCommunity.Add("Covered Parking", coveredParking);*/

            var air = new Dictionary <string, string>();

            air.Add("centralair", "Central Air");
            air.Add("windowunit", "Window Unit");
            air.Add("evaporativecooler", "Evaporative Cooler");
            air.Add("other", "Other");
            OptionsProperties.Add("Air Conditioning", air);
        }
예제 #5
0
 void SaveClick(object sender, EventArgs e)
 {
     if (LanguageListView.SelectedIndex != -1)
     {
         var lang =
             ((ListViewItem)LanguageListView.Items[LanguageListView.SelectedIndex]).Name.Replace('_',
                                                                                                 '-');
         var oP = new OptionsProperties();
         oP.SetOption("Language", lang);
         if (MessageBox.Show(ResLocalization.ChangeLanguageWarning, ResLocalization.Warning, MessageBoxButton.YesNo,
                             MessageBoxImage.Warning) == MessageBoxResult.Yes)
         {
             Application.Current.Shutdown();
             //System.Windows.Forms.Application.Restart();
         }
     }
 }
예제 #6
0
        public StartUpWindow()
        {
            var db = new DatabaseManagement();

            db.CreateDatabase();
            string GetSavedLanguage()
            {
                var oP = new OptionsProperties();

                return(oP.GetOption <string>("Language"));
            }

            Thread.CurrentThread.CurrentUICulture =
                new System.Globalization.CultureInfo(GetSavedLanguage());
            InitializeComponent();

            _backgroundWorker.DoWork += SearchPorts; // TO DO // HASAN'ın Notu Buraya bir şey mi eklenecek? Lisans yok mu şimdilik?
            var mainWindow = new MainWindow();

            mainWindow.Show();
            Close();
        }