public InkbunnyHndl(mainUI parent, string path, string sessionID, dlSetting dls) { this.parent = parent; this.path = path; this.sessionID = sessionID; this.dls = dls; }
private void button4_Click(object sender, EventArgs e) { string[] lines = rbTags.Text.Split(new string[] { Environment.NewLine }, StringSplitOptions.None); string tags = string.Join("%20", lines); dlSetting set = dlSetting.Gallery; if (rbGallery.Checked) { set = dlSetting.Gallery; } else if (rbTag.Checked) { set = dlSetting.Tags; } InkbunnyHndl ibhndl = new InkbunnyHndl(this, pathIB, sessionID, set); Thread ib = new Thread(() => ibhndl.begin(tags)) { IsBackground = true }; ib.Start(); }