Beispiel #1
0
		public frmSample59()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
			
			dict = new PersistentDictionary<int, Customer>("EssentData");
			var essentSource = new EseentPingData<Customer>(dict);
			
			AddRows(1, 10000);
			
			pingGrid1.Columns.Add("TotalRevenue", "TotalRevenue property", typeof(int));
			pingGrid1.Columns.Add("Name", "Name property", typeof(string));
			
			
			pingGrid1.DataSource = essentSource;
			pingGrid1.Columns.StretchToFit();
			
			pingGrid1.VScrollPositionChanged += delegate { UpdateCount(); };
			toolStripMenuItem1.Click += this.ToolStripMenuItem1Click;
			
			UpdateCount();
		}
Beispiel #2
0
        public frmSample59()
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();

            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //

            dict = new PersistentDictionary <int, Customer>("EssentData");
            var essentSource = new EseentPingData <Customer>(dict);

            AddRows(1, 10000);

            pingGrid1.Columns.Add("TotalRevenue", "TotalRevenue property", typeof(int));
            pingGrid1.Columns.Add("Name", "Name property", typeof(string));


            pingGrid1.DataSource = essentSource;
            pingGrid1.Columns.StretchToFit();

            pingGrid1.VScrollPositionChanged += delegate { UpdateCount(); };
            toolStripMenuItem1.Click         += this.ToolStripMenuItem1Click;

            UpdateCount();
        }