bool SetInit() { try { InputData.MaxId = m_max_id_value.Text ?? ""; InputData.MinId = m_min_id_value.Text ?? ""; InputData.MaxMark = m_max_mark_value.Text ?? ""; InputData.MinMark = m_min_mark_value.Text ?? ""; InputData.Tag = m_tag_value.Text ?? ""; InputData.NotTag = m_not_tag_value.Text ?? ""; InputData.Offset = InputData.AsNumber(m_offset_value.Text, 0); InputData.ViewColumn = InputData.AsNumber(m_view_column_value.Text, 1); InputData.AddItemTimeSpan = InputData.AsNumber(m_add_img_timespan_value.Text, 1); return(true); } catch (FormatException) { return(false); } }
bool CreateInput() { try { InputData.CrawlingMaxExCount = m_max_ex_value.Text; InputData.CrawlingStartId = InputData.AsNumber(m_start_id_value.Text, 0); InputData.CrawlingEndId = m_end_id_value.Text; InputData.TaskCount = InputData.AsNumber(m_task_count_value.Text, 1); InputData.Count = ConstInfo.PIXIVDATA_PRELOAD_COUNT; return(true); } catch (FormatException) { return(false); } }