private void ResetViewers() { // Clear the entire right-hand pane this.pnlNoViewers.Visible = false; this.tabViewers.Visible = false; // Reset the viewer tabs this.tabViewers.TabPages.Clear(); this.pnlGeneralContents.Controls.Clear(); if (this.ListViewTabs_ != null) { this.ListViewTabs_.TabPages.Clear(); } this.ListViewTabs_ = null; // Reset all applicable viewer tab contents foreach (ListView LV in this.ListViews_.Values) { LV.Clear(); } this.ListViews_.Clear(); this.ListIcons_.Images.Clear(); this.chkShowIcons.Checked = false; this.btnThingListSaveImages.Enabled = false; this.cmbItems.Items.Clear(); this.cmbImageChooser.Items.Clear(); this.picImageViewer.Image = null; this.picImageViewer.Tag = null; }
private void listview() { LV.Clear(); LV.View = View.Details; LV.Columns.Add("Name of process", 80); LV.Columns.Add("Arriving time", 80); LV.Columns.Add("Duration of Execution", 80); LV.Columns.Add("Start", 80); LV.Columns.Add("Done", 80); LV.Columns.Add("Wait", 80); LV.Columns.Add("TA", 80); LV.GridLines = true; }
public void ShowData(bool SetFirstColumnAsPrimaryKey = false) { LV.Clear(); if (!CheckCondition()) { return; } MakeCommandText(); if (table != null) { table.Clear(); } adapter.Fill(dataset, "Tab"); table = dataset.Tables["Tab"]; if (SetFirstColumnAsPrimaryKey) { table.PrimaryKey = new DataColumn[] { table.Columns[0] } } ; GenerateHeader(); LoadData(); RenderRowColor(); }