/// <summary> /// Full start all the writings and readings from the process /// </summary> public void StartAll() { // Set all the flags Writings = true; Readings = Readings.Select(x => true).ToList(); // Avoid start more than one process if (IsRunning) return; // Normal Start Start(); }
/// <summary> /// Stops the current process /// </summary> public void Stop() { // Set control flag IsRunning = false; // Clear control flags Readings = Readings.Select(x => false).ToList(); Writings = false; // Save the end time EndTime = DateTime.Now; // Fires onstop event OnStopRun?.Invoke(this); }
public override string ToString() { var readings = Readings.Select(r => $"【{r}】"); return($"{Kanji} {string.Join('、', readings)} ({Tags})\n {Meanings}"); }