public MainForm() { InitializeComponent(); //Instantiate Queue Worker queue = new BackgroundQueue(); stopQueue = false; // Create an instance of a ListView column sorter and assign it // to the ListView control. lvwColumnSorter = new ListViewColumnSorter(); lvSensorData.ListViewItemSorter = lvwColumnSorter; lvwColumnSorter.SortColumn = 2; //TimeStamp column lvwColumnSorter.Order = SortOrder.Descending; lvSensorData.Sort(); }
public MainForm() { InitializeComponent(); //Instantiate Queue Worker queue = new BackgroundQueue(); stopQueue = false; // Create an instance of a ListView column sorter and assign it // to the ListView control. lvwColumnSorter = new ListViewColumnSorter(); lvSensorData.ListViewItemSorter = lvwColumnSorter; lvwColumnSorter.SortColumn = 2; //TimeStamp column lvwColumnSorter.Order = SortOrder.Descending; lvSensorData.Sort(); //Ensure IoT Edge Gateway device root certificate is trusted DeviceManager.InstallCACert(); }