Exemplo n.º 1
0
        private static string to_string(parts_layout_template layout)
        {
            string rows  = util.concatenate(layout.rows_.Select(x => "" + x.label_width_ + "," + x.row_width_ + "," + x.parts_.Count), ";");
            string parts = "";

            for (int i = 0; i < layout.rows_.Count; ++i)
            {
                var r = layout.rows_[i];
                if (parts != "")
                {
                    parts += ";";
                }
                parts += util.concatenate(r.parts_.Select(x => "" + i + "," + (int)x.type
                                                          + "," + (x.visible ? "1" : "0") + "," + (x.multi_line ? "1" : "0") + "," + (x.auto_resize ? "1" : "0") + "," + x.line_count), ";");
            }
            settings_as_string sett = new settings_as_string("");

            sett.set("rows", rows);
            sett.set("parts", parts);
            sett.set("name", layout.name_);
            return(sett.ToString());
        }
Exemplo n.º 2
0
        private static string to_string(parts_layout_template layout)
        {
            string rows  = util.concatenate(layout.rows_.Select(x => "" + x.label_width_ + "," + x.row_width_ + "," + x.parts_.Count), ";");
            string parts = "";

            for (int i = 0; i < layout.rows_.Count; ++i)
            {
                var r = layout.rows_[i];
                if (parts != "")
                {
                    parts += ";";
                }
                parts += util.concatenate(r.parts_.Select(x => "" + i + "," + (int)x.type
                                                          + "," + (x.visible ? "1" : "0") + "," + (x.multi_line ? "1" : "0") + "," + (x.auto_resize ? "1" : "0") + "," + x.line_count), ";");
            }
            // note: when too many settings here, I should use a log_settings_string-like or something - at this point, it's manageable, but perhaps later
            settings_as_string sett = new settings_as_string("");

            sett.set("rows", rows);
            sett.set("parts", parts);
            sett.set("name", layout.name_);
            return(sett.ToString());
        }
Exemplo n.º 3
0
 private static string to_string(parts_layout_template layout) {
     string rows = util.concatenate( layout.rows_.Select(x => "" + x.label_width_ + "," + x.row_width_ + "," + x.parts_.Count), ";");
     string parts = "";
     for (int i = 0; i < layout.rows_.Count; ++i) {
         var r = layout.rows_[i];
         if (parts != "")
             parts += ";";
         parts += util.concatenate(r.parts_.Select(x => "" + i + "," + (int)x.type 
             + "," + (x.visible ? "1" : "0") + "," + (x.multi_line ? "1" : "0") + "," + (x.auto_resize ? "1" : "0") + "," + x.line_count), ";");
     }
     // note: when too many settings here, I should use a log_settings_string-like or something - at this point, it's manageable, but perhaps later
     settings_as_string sett = new settings_as_string("");
     sett.set("rows", rows);
     sett.set("parts", parts);
     sett.set("name", layout.name_);
     return sett.ToString();
 }
Exemplo n.º 4
0
 public override string ToString()
 {
     return(sett_.ToString());
 }
Exemplo n.º 5
0
 public override string ToString()
 {
     return(sett_.ToString().Replace("\r\n", separator_));
 }
Exemplo n.º 6
0
 private static string to_string(parts_layout_template layout) {
     string rows = util.concatenate( layout.rows_.Select(x => "" + x.label_width_ + "," + x.row_width_ + "," + x.parts_.Count), ";");
     string parts = "";
     for (int i = 0; i < layout.rows_.Count; ++i) {
         var r = layout.rows_[i];
         if (parts != "")
             parts += ";";
         parts += util.concatenate(r.parts_.Select(x => "" + i + "," + (int)x.type 
             + "," + (x.visible ? "1" : "0") + "," + (x.multi_line ? "1" : "0") + "," + (x.auto_resize ? "1" : "0") + "," + x.line_count), ";");
     }
     settings_as_string sett = new settings_as_string("");
     sett.set("rows", rows);
     sett.set("parts", parts);
     sett.set("name", layout.name_);
     return sett.ToString();
 }