Beispiel #1
0
        public void Save()
        {
            string[] values = new string[17];
            values[0]  = name;
            values[1]  = imagePath;
            values[2]  = anchor.ToString();
            values[3]  = increment.ToString();
            values[4]  = xPos.ToString();
            values[5]  = yPos.ToString();
            values[6]  = lastUsed.ToString();
            values[7]  = FontName;
            values[8]  = FontSize.ToString();
            values[9]  = IsBold.ToString();
            values[10] = IsCursive.ToString();
            values[11] = FontColor.ToArgb().ToString();
            values[12] = BorderSize.ToString();
            values[13] = BorderColor.ToArgb().ToString();

            DataHelper.SaveData(values, name);
        }
Beispiel #2
0
 public static string ToCppString(this AnchorStyles anchor)
 {
     return("AnchorStyles::" + anchor.ToString().Replace(", ", "|AnchorStyles::"));
 }