public LogWindow() { InitializeComponent(); try { System.Drawing.Icon ico = new System.Drawing.Icon(GetIconFile(@"Common\Images\Grid\Icon\sfgrid.ico")); this.Icon = ico; } catch { } tw = new ListboxTextWriter(this.listBox1); }
public Form1() { // // Required for Windows Form Designer support // InitializeComponent(); if (DpiAware.GetCurrentDpi() > 96) { this.CaptionBarHeight = (int)DpiAware.LogicalToDeviceUnits(this.CaptionBarHeight); } // // TODO: Add any constructor code after InitializeComponent call // configurations = new ConfigCollection(); configurations.Add(new Config("Reset Datasource")); configurations.Add(new Config("Flat Virtual List, 30 million records, Virtual Mode")); configurations.Add(new Config("Flat Virtual List, VirtualMode")); configurations.Add(new Config("Flat Virtual List, No Optimizations")); configurations.Add(new Config("Flat Virtual List, Using Custom Engine")); configurations.Add(new Config("Flat Virtual List, Sorted")); configurations.Add(new Config("Flat Virtual List, Grouped")); configurations.Add(new Config("Flat Virtual List, Grouped, VerticalPixelScroll")); configurations.Add(new Config("Flat DataView, VirtualMode, Pass-Through sorting enabled.")); configurations.Add(new Config("Flat DataView, VirtualMode, Pass-Through sorting disabled.")); configurations.Add(new Config("Flat DataView, Summaries.")); configurations.Add(new Config("Flat DataView, Grouped.")); //// configurations.Add(new Config()); InitializeSelectMenu(); gridGroupingControl1 = new GridGroupingControl(); Config con = new Config("Flat Virtual List, 30 million records, Virtual Mode"); con.ApplyTo(this); GridSettings(); Log = new ListboxTextWriter(this.listBox1); }