Ejemplo n.º 1
0
 /// <summary>
 /// Constructor for the Comment Legal dialog
 /// </summary>
 /// <param name="column">The column associated with this comment legal grid column</param>
 /// <param name="frm">The main form</param>
 /// <param name="name">The name of the column</param>
 /// <param name="currentPage">The current page</param>
 public CommentLegalDialog(TableBasedDropDownColumn column, MainForm frm, string name, Page currentPage)
     : base(column, frm, name, currentPage)
 {
     InitializeComponent();
     fieldName = name;
     page = currentPage;
     //dgCodes.CaptionText = "Comment Legal values for: " + name;
 }
Ejemplo n.º 2
0
        public LegalValuesDialog(TableBasedDropDownColumn column, MainForm frm, string name, Page currentPage)
            : base(frm)
        {
            InitializeComponent();
            fieldName = name;
            page = currentPage;
            //dgCodes.CaptionText += "  " + name;
            //dgCodes.PreferredColumnWidth = Convert.ToInt32(dgCodes.Width * COLUMN_WIDTH_MULTIPLE);
            ddlColumn = column;

            if (!string.IsNullOrEmpty(column.SourceTableName))
            {
                codeTable = column.GetSourceData();
                sourceTableName = column.SourceTableName;
                textColumnName = column.TextColumnName;
            }
        }