コード例 #1
0
        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);
        }
コード例 #2
0
 private void LayerControl_DoubleClickedOnLayer(object sender, PaintDotNet.LayerEventArgs ce)
 {
     OnPropertiesButtonClick();
     this.OnRelinquishFocus();
 }