Exemple #1
0
 public ConfigV3 Convert()
 {
     return(new ConfigV3()
     {
         profiles = profiles,
         activeProfile = activeProfile,
         shuffler = ShufflerConfigV2.fromV1(shuffler)
     });
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 public ConfigV3()
 {
     activeProfile = -1;
     profiles      = new List <Profile>();
     shuffler      = new ShufflerConfigV2();
 }