private void button3_Click(object sender, EventArgs e)
        {
            Cfg.interval  = (int)(interval.Value);
            Cfg.zoom      = (int)(image_zoom.Value);
            Cfg.autostart = autostart.Checked;
            if (radioButton_CDN.Checked)
            {
                Cfg.source_selection = 1;
                Cfg.cloud_name       = cloud_name.Text;
                Cfg.image_source     = "http://res.cloudinary.com/" + Cfg.cloud_name + "/image/fetch/http://himawari8-dl.nict.go.jp/himawari8/img/D531106";
            }
            else
            {
                Cfg.source_selection = 0;
                Cfg.image_source     = "http://himawari8-dl.nict.go.jp/himawari8/img/D531106";
            }
            switch (image_size.SelectedIndex)
            {
            case 0: Cfg.size = 1; break;

            case 1: Cfg.size = 2; break;

            case 2: Cfg.size = 4; break;

            case 3: Cfg.size = 8; break;

            case 4: Cfg.size = 16; break;

            default: Cfg.size = 1; break;
            }
            Cfg.Save();
            Autostart.Set(Cfg.autostart);
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Cfg.satellite = satellite.Text;
            Cfg.interval  = (int)(interval.Value);
            Cfg.zoom      = (int)(image_zoom.Value);
            Cfg.autostart = autostart.Checked;
            if (radioButton_CDN.Checked)
            {
                Cfg.source_selection = 1;
                Cfg.cloud_name       = cloud_name.Text;
                Cfg.api_key          = api_key.Text;
                Cfg.api_secret       = api_secret.Text;
            }
            else
            {
                Cfg.source_selection = 0;
            }
            switch (image_size.SelectedIndex)
            {
            case 0: Cfg.size = 1; break;

            case 1: Cfg.size = 2; break;

            case 2: Cfg.size = 4; break;

            case 3: Cfg.size = 8; break;

            case 4: Cfg.size = 16; break;

            default: Cfg.size = 1; break;
            }
            Cfg.Save();
            Autostart.Set(Cfg.autostart);
            this.Close();
        }
Esempio n. 3
0
 private void button3_Click(object sender, EventArgs e)
 {
     Cfg.source_select = comboBox1.Text;
     Cfg.interval      = (int)(numericUpDown1.Value);
     Cfg.max_number    = (int)(numericUpDown2.Value);
     Cfg.autostart     = checkBox1.Checked;
     Cfg.display_mode  = comboBox_DisplayMode.SelectedIndex;
     Cfg.Save();
     Autostart.Set(Cfg.autostart);
 }
Esempio n. 4
0
        private void Save()
        {
            Cfg.SourceSelect = CbImageSource.Text;
            Cfg.Interval     = (int)(TxtUpdateMinutes.Value);
            Cfg.MaxNumber    = (int)(TxtMaxImageNumber.Value);
            Cfg.Autostart    = CbAutoStart.Checked;
            Cfg.DisplayMode  = CbDisplayMode.SelectedIndex;
            Cfg.Save();

            Autostart.Set(Cfg.Autostart);
        }
Esempio n. 5
0
        private void save_config()
        {
            Cfg.satellite     = satellite.Text;
            Cfg.interval      = (int)(interval.Value);
            Cfg.zoom          = (int)(image_zoom.Value);
            Cfg.autostart     = autostart.Checked;
            Cfg.setwallpaper  = setwallpaper.Checked;
            Cfg.saveTexture   = Save_Texture.Checked;
            Cfg.saveMaxCount  = (int)Save_Max_Count.Value;
            Cfg.saveDirectory = Directory_Display.Text;

            if (radioButton_CDN.Checked)
            {
                Cfg.source_selection = 1;
                Cfg.cloud_name       = cloud_name.Text;
                Cfg.api_key          = api_key.Text;
                Cfg.api_secret       = api_secret.Text;
            }
            else
            {
                Cfg.source_selection = 0;
            }
            switch (image_size.SelectedIndex)
            {
            case 0: Cfg.size = 1; break;

            case 1: Cfg.size = 2; break;

            case 2: Cfg.size = 4; break;

            case 3: Cfg.size = 8; break;

            case 4: Cfg.size = 16; break;

            default: Cfg.size = 1; break;
            }
            Cfg.Save();
            Autostart.Set(Cfg.autostart);
        }
Esempio n. 6
0
        private void button1_Click(object sender, EventArgs e)
        {
            Cfg.interval       = (int)(interval.Value);
            Cfg.retry_interval = (int)(retry_interval.Value);
            Cfg.delete_timeout = (int)(delete_timeout.Value);
            Cfg.zoom           = (int)(image_zoom.Value);
            Cfg.autostart      = autostart.Checked;
            if (radioButton_CDN.Checked)
            {
                Cfg.source_selection = 1;
                Cfg.cloud_name       = cloud_name.Text;
                Cfg.api_key          = api_key.Text;
                Cfg.api_secret       = api_secret.Text;
                Cfg.image_source     = Cfg.cloud_url_base + Cfg.cloud_name + "/image/fetch/http://himawari8-dl.nict.go.jp/himawari8/img/D531106";
            }
            else
            {
                Cfg.source_selection = 0;
                Cfg.image_source     = "http://himawari8-dl.nict.go.jp/himawari8/img/D531106";
            }
            switch (image_size.SelectedIndex)
            {
            case 0: Cfg.size = 1; break;

            case 1: Cfg.size = 2; break;

            case 2: Cfg.size = 4; break;

            case 3: Cfg.size = 8; break;

            case 4: Cfg.size = 16; break;

            default: Cfg.size = 1; break;
            }
            Cfg.Save();
            Autostart.Set(Cfg.autostart);
            this.Close();
        }