private void propertiesCmd() { int headerOffset = (int)fsctrl.getFileHeaderOffset(selection.FileHeader.NamePlusExtensionWithoutZeros, fsctrl.CurrDirCluster, false); FilePropertiesWindow fpw = new FilePropertiesWindow(selection.FileHeader); if (fpw.ShowDialog().Value) { fsctrl.writeBytes(headerOffset, selection.FileHeader.toByteArray()); selection.refresh(); } }