private void LayerRow_Click(object sender, EventArgs e) { LayerContainer lc = (LayerContainer)this.Parent.Parent; lc.UnselectAll(); lc.SelectedLayer = this; this.Selected = true; }
private void UpdateVisibility() { LayerContainer lc = (this.Parent != null) ? (LayerContainer)this.Parent.Parent : null; if (LayerVisible) { pictureBox1.Image = Mainpaint.Properties.Resources.layer_visibility; if (lc != null) { lc.MasterWindow.Space.LayerChangeVisibility(this.Text, true); lc.MasterWindow.DrawUpdater(true); } } else { if (lc != null) { lc.MasterWindow.Space.LayerChangeVisibility(this.Text, false); lc.MasterWindow.DrawUpdater(true); } pictureBox1.Image = null; } }