public ConfigV3 Convert() { return(new ConfigV3() { profiles = profiles, activeProfile = activeProfile, shuffler = ShufflerConfigV2.fromV1(shuffler) }); }
public static ShufflerConfigV2 fromV1(ShufflerConfigV1 v1) { ShufflerConfigV2 ret = new ShufflerConfigV2(); ret.addNumber = v1.addNumber; ret.addMark = v1.addMark; ret.replaceChnSymbol = v1.replaceChnSymbol; ret.keepAtFirst = v1.keepAtFirst; ret.autoSplit = v1.autoSplit; ret.startNumber = v1.startNumber; ret.outputSplit = v1.splitText.Clone() as string; ret.sentenceSplit = v1.splitChars.Clone() as string; ret.sortMethod = v1.sortMethod; return(ret); }
public ConfigV3() { activeProfile = -1; profiles = new List <Profile>(); shuffler = new ShufflerConfigV2(); }