/// <summary> /// Format value. /// </summary> /// <param name="_window"></param> /// <param name="_color"></param> public static FormatValue CreateFormatValue(EditVariable _window, Color _color) { List <string> vars = new List <string>(); ParserOccurence p = new ParserOccurence("", "text", vars); return(new FormatValue(p, _window, _color)); }
/// <summary> /// Parserv value new. /// </summary> public FormatValue(ParserOccurence occurence, EditVariable _window, Color _color) { // Parent occurence Occruence = occurence; // Parent window ParentEdit = _window; // Color BackgroundColor = _color; // Horizontal resize true ExpandHorizontal = true; // No margins Margin = 0; MinHeight = 30; // Init components _initComponents(); }