private void CreateHelperForms() { toolTipLabel = new ToolTipLabel(this, baseConvertor, helpTips); labelWindow = new EditLabel(name, num, "Battle Events", true); byteEditor = new ByteEditor(new ApplyBinaryChangesFunction(ApplyBinaryChanges), false); byteEditor.ToggleButton = toggleByteEditor; byteEditor.Owner = this; }
/// <summary> /// Read save-file /// </summary> /// <param name="path">archive path</param> public void ReadFile(string path) { br = new ByteEditor(); try { br.ReadFile(path); } catch { br = null; throw new Exception("Save file failed to open."); } }