public SoundsControl() { InitializeComponent(); SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint, true); RefMarker = this; _spTimer = new Timer(); _spTimer.Tick += OnSpTimerTick; treeView.LabelEdit = true; treeView.BeforeLabelEdit += TreeView_BeforeLabelEdit; treeView.AfterLabelEdit += TreeViewOnAfterLabelEdit; }
public SoundsControl() { InitializeComponent(); SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint, true); RefMarker = this; _spTimer = new Timer(); _spTimer.Tick += OnSpTimerTick; treeView.LabelEdit = true; treeView.BeforeLabelEdit += TreeView_BeforeLabelEdit; treeView.AfterLabelEdit += TreeViewOnAfterLabelEdit; splitContainer1.Panel2Collapsed = !Options.RightPanelInSoundsTab; statusStripSounds.Visible = splitContainer1.Panel2Collapsed; toolStrip1.Visible = splitContainer1.Panel2Collapsed; }