public void SetViewButtonEnable(System.Windows.Forms.View view, bool enabled) { switch (view) { case System.Windows.Forms.View.Details: tbnViewDetail.Enabled = enabled; break; case System.Windows.Forms.View.LargeIcon: tbnViewLargeIcons.Enabled = enabled; break; case System.Windows.Forms.View.List: tbnViewList.Enabled = enabled; break; case System.Windows.Forms.View.SmallIcon: tbnViewSmallIcons.Enabled = enabled; break; case System.Windows.Forms.View.Tile: tbnViewTile.Enabled = enabled; break; } }
public void WdSetView(System.Windows.Forms.View view) // Since SetView exists, it was referred to as WdSetView. { if (this.InvokeRequired) { WdSetViewCallback d = new WdSetViewCallback(WdSetView); this.Invoke(d, new object[] { view }); } else { this.View = view; } }
private void SetViewMode(System.Windows.Forms.View view, bool saveSetting) { _mnuIconsView.Checked = (view == System.Windows.Forms.View.LargeIcon); _mnuListView.Checked = (view == System.Windows.Forms.View.List); _mnuDetailsView.Checked = (view == System.Windows.Forms.View.Details); _mnuTilesView.Checked = (view == System.Windows.Forms.View.Tile); _folderView.View = view; if (saveSetting) { Settings settings = Settings.Default; settings.FolderViewMode = view; settings.Save(); } }
//************************************************************************* // Method: VirtualListView // Description: Constructor for the VirtualListView class // // Parameters: // None // // Return Value: None //************************************************************************* public VirtualListView() { // virtual listviews must be Details or List view with no sorting View = View.Details; Sorting = SortOrder.None; }
internal void SetView(System.Windows.Forms.View view) { listViewMain.View = view; listView1.View = view; viewType = view.ToString(); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(TreeListView)); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.plusMinusImageList = new System.Windows.Forms.ImageList(this.components); // // imageList1 // this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; this.imageList1.ImageSize = new System.Drawing.Size(16, 16); this.imageList1.TransparentColor = System.Drawing.Color.Transparent; // // plusMinusImageList // this.plusMinusImageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; this.plusMinusImageList.ImageSize = new System.Drawing.Size(16, 16); this.plusMinusImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("plusMinusImageList.ImageStream"))); this.plusMinusImageList.TransparentColor = System.Drawing.Color.Transparent; // // TreeListView // this.FullRowSelect = true; this.View = System.Windows.Forms.View.Details; }
private void InitializeComponent() { if (this.Spawn == null) this.Spawn = new ListView(); this.components = new System.ComponentModel.Container(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.SuspendLayout(); // // timer1 // // this.timer1.Enabled = true; // this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // CListView // this.View = System.Windows.Forms.View.Details; this.BorderStyle = System.Windows.Forms.BorderStyle.None; this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.CListView_MouseDown); this.ResumeLayout(false); }