public virtual void propertyChanged(Property property)
 {
   this.node.put(property.getName(), property.getSaveValue());
   if (property == this.__\u003C\u003Ex)
     ((Window) this.frame).setLocation(this.__\u003C\u003Ex.getValue().intValue(), ((Component) this.frame).getY());
   else if (property == this.__\u003C\u003Ey)
     ((Window) this.frame).setLocation(((Component) this.frame).getX(), this.__\u003C\u003Ey.getValue().intValue());
   else if (property == this.__\u003C\u003Ewidth)
     ((Window) this.frame).setSize(this.__\u003C\u003Ewidth.getValue().intValue(), ((Component) this.frame).getHeight());
   else if (property == this.__\u003C\u003Eheight)
     ((Window) this.frame).setSize(((Component) this.frame).getWidth(), this.__\u003C\u003Eheight.getValue().intValue());
   else if (property == this.__\u003C\u003Eteam)
   {
     Robot.setTeam(this.__\u003C\u003Eteam.getValue().intValue());
     ((Frame) this.frame).setTitle(new StringBuilder().append("SmartDashboard - ").append((object) this.__\u003C\u003Eteam.getValue()).toString());
   }
   else if (property == this.__\u003C\u003EhideMenu)
   {
     this.frame.setShouldHideMenu(((Boolean) this.__\u003C\u003EhideMenu.getValue()).booleanValue());
   }
   else
   {
     if (property != this.__\u003C\u003ElogToCSV)
       return;
     if (((Boolean) this.__\u003C\u003ElogToCSV.getValue()).booleanValue())
       this.frame.getLogger().start((string) this.__\u003C\u003EcsvFile.getValue());
     else
       this.frame.getLogger().stop();
   }
 }
 public virtual bool validatePropertyChange(Property property, object value)
 {
   if (property == this.__\u003C\u003Eteam || property == this.__\u003C\u003Ewidth || property == this.__\u003C\u003Eheight)
     return ((Integer) value).intValue() > 0;
   if (property == this.__\u003C\u003Egrid_widths || property == this.__\u003C\u003Egrid_heights)
   {
     int[] numArray1 = (int[]) value;
     if (numArray1.Length == 0)
       return false;
     int[] numArray2 = numArray1;
     int length = numArray2.Length;
     for (int index = 0; index < length; ++index)
     {
       if (numArray2[index] <= 0)
         return false;
     }
     return true;
   }
   else
     return property != this.__\u003C\u003ElogToCSV || !((Boolean) value).booleanValue() || JOptionPane.showOptionDialog((Component) null, (object) "Should SmartDashboard start logging to the CSV file? (This will override the existing file)", "Warning", 0, 2, (Icon) null, (object[]) null, (object) Boolean.valueOf(false)) == 0;
 }