public static VLabeling Create(string fname) { var x = new VLabeling() { Filename = fname }; x.Categories = new string[] { "Default" }; return(x); }
public static VLabeling LoadShadow(string fname) { var fnew = Path.ChangeExtension(fname, Config.ShadowExtension); if (!File.Exists(fnew)) { return(VLabeling.Create(fname)); } else { return(VLabeling.Load(fnew)); } }