Beispiel #1
0
        void optionOk_Click(object sender, EventArgs e)
        {
            var formData = getFormData();

            cfg.saveFromForm(formData);

            setStartUpMenu2(!bool.Parse(cfg.get("IsStartUp")));

            //main cookie
            var importer = nicoSessionComboBox1.Selector.SelectedImporter;

            if (importer != null && importer.SourceInfo != null)
            {
                var si = importer.SourceInfo;

                if (isCookieFileSiteiChkBox.Checked)
                {
                    SourceInfoSerialize.save(si.GenerateCopy(si.BrowserName, si.ProfileName, cookieFileText.Text), false);
                }
                else
                {
                    SourceInfoSerialize.save(si, false);
                }
            }



            DialogResult = DialogResult.OK;
            Close();
        }
Beispiel #2
0
        void optionOk_Click(object sender, EventArgs e)
        {
            var formData = getFormData();

            cfg.saveFromForm(formData);
            Close();

            //main cookie
            var importer = nicoSessionComboBox1.Selector.SelectedImporter;

            if (importer == null || importer.SourceInfo == null)
            {
                return;
            }
            var si = importer.SourceInfo;

            if (isCookieFileSiteiChkBox.Checked)
            {
                SourceInfoSerialize.save(si.GenerateCopy(si.BrowserName, si.ProfileName, cookieFileText.Text), false);
            }
            else
            {
                SourceInfoSerialize.save(si, false);
            }
        }