private void LayerControl_ClickOnLayer(object sender, PaintDotNet.LayerEventArgs ce) { // TODO: whoa there, enough nesting? int index = layerControl.AppWorkspace.ActiveDocumentWorkspace.Document.Layers.IndexOf(ce.Layer); DetermineButtonEnableStates(index); }
private void LayerControl_DoubleClickedOnLayer(object sender, PaintDotNet.LayerEventArgs ce) { OnPropertiesButtonClick(); this.OnRelinquishFocus(); }