Exemple #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            SettingsReader   manager = new SettingsReader(GlobalVariables.apppath + @"\settings.ini");
            SelectCityWindow scw     = new SelectCityWindow(false);

            scw.ShowDialog();
        }
        private void CheckCity()
        {
            string cityname;

            try
            {
                SettingsReader manager = new SettingsReader(GlobalVariables.apppath + @"\settings.ini");
                cityname = manager.GetPrivateString("Main", "City");
                if (cityname == "null")
                {
                    SelectCityWindow scw = new SelectCityWindow(true);
                    scw.ShowDialog();
                }
            }
            catch (Exceptions ex)
            {
                MessageBox.Show(ex.Message);
            }
        }