public Form1()
        {
            InitializeComponent();

            richEditControl1.Options.MailMerge.DataSource = ProductsTable.CreateData();
            RestoreTemplate();
        }
示例#2
0
        public static ProductsTable CreateData()
        {
            ProductsTable table = new ProductsTable();

            table.Rows.Add(new object[] { 1, "Chai", 39, 18 });
            table.Rows.Add(new object[] { 2, "Chang", 17, 19 });
            table.Rows.Add(new object[] { 3, "Guarana Fantastica", 20, 4.5 });
            table.Rows.Add(new object[] { 4, "Sasquatch Ale", 111, 14 });
            table.Rows.Add(new object[] { 5, "Steeleye Stout", 20, 18 });

            return(table);
        }