예제 #1
0
 private void gridControl1_ColumnBinding(object sender, Ntreev.Windows.Forms.Grid.ColumnBindingEventArgs e)
 {
     switch (e.PropertyDescriptor.Name)
     {
         case "Boolean":
             e.BindingColumn = new ColumnUserControl();
             break;
         case "DateTime":
             e.BindingColumn = new ColumnUserDropDown();
             break;
         case "Color":
             e.BindingColumn = new ColumnUserModal();
             break;
     }
 }
예제 #2
0
        private static IEnumerable<string> recursive(Ntreev.Library.Psd.IPsdLayer layer)
        {
            if (layer.LinkedLayer != null)
            {
                if (layer.LinkedLayer.AbsoluteUri != null)
                    yield return layer.LinkedLayer.Name;
                foreach (var item in recursive(layer.LinkedLayer.Document))
                {
                    yield return item;
                }
            }

            foreach (var item in layer.Childs)
            {
                foreach (var i in recursive(item))
                {
                    yield return i;
                }
            }
        }