Exemplo n.º 1
0
 private void RenderContentOnContentFieldChanged(object sender, RenderContentFieldChangedEventArgs renderContentFieldChangedEventArgs)
 {
     //RhinoApp.WriteLine("... {0}", renderContentFieldChangedEventArgs.FieldName);
 }
Exemplo n.º 2
0
 private static void OnContentFieldChanged(int serialNumber, IntPtr name, IntPtr value, int cc)
 {
   try
   {
     if (name == IntPtr.Zero) return;
     var content = FromSerialNumber(serialNumber);
     if (content == null) return;
     //var v = Variant.CopyFromPointer(value);
     //var old_value = v.AsObject();
     var name_string = System.Runtime.InteropServices.Marshal.PtrToStringUni(name);
     var args = new RenderContentFieldChangedEventArgs(content, name_string, (ChangeContexts) cc);
     g_content_field_changed_event(content, args);
   }
   catch (Exception ex)
   {
     Runtime.HostUtils.ExceptionReport(ex);
   }
 }