// Token: 0x060019E9 RID: 6633 RVA: 0x00048EF0 File Offset: 0x000470F0 protected override void vmethod_7(Class524 fileName, bool modified) { if (base.CanSave) { if (modified) { if (Class524.smethod_0(fileName, null)) { this.Text = "Way Point Editor : New File*"; return; } this.Text = string.Format("Way Point Editor : {0}*", Path.GetFileName(fileName.string_1)); return; } else { if (Class524.smethod_0(fileName, null)) { this.Text = "Way Point Editor : New File"; return; } this.Text = "Way Point Editor : " + Path.GetFileName(fileName.string_1); } } }
// Token: 0x0600296C RID: 10604 RVA: 0x0009E930 File Offset: 0x0009CB30 public static bool smethod_4(out Class524 selectedFile) { bool result; using (FileSelect fileSelect = new FileSelect()) { fileSelect.InputLabelMessage = "Please enter a reference name for this flora file."; fileSelect.InputText = "The ToonTown Spoofer : Gardener Flora File Name"; fileSelect.FileInfo = Class110.Instance.GardenerFloraSettings.GardenerFloraFiles.Files.ToArray(); fileSelect.Filter = "Gardener Flora File|*.flora"; fileSelect.InstallFolder = Class291.GardenerFloraEstateSettings; fileSelect.FileExtension = ".flora"; FileSelectBase fileSelectBase = fileSelect; if (Class460.eventHandler_2 == null) { Class460.eventHandler_2 = new EventHandler <EventArgs43 <string> >(Class460.smethod_8); } fileSelectBase.InputValidating += Class460.eventHandler_2; if (fileSelect.ShowDialog() == DialogResult.OK) { selectedFile = fileSelect.SelectedFileInfo; } else { selectedFile = null; } Class110.Instance.GardenerFloraSettings.GardenerFloraFiles.Files.Clear(); Class110.Instance.GardenerFloraSettings.GardenerFloraFiles.Files.AddRange(fileSelect.FileInfo); Class110.smethod_1(); result = Class524.smethod_1(selectedFile, null); } return(result); }
// Token: 0x0600296A RID: 10602 RVA: 0x0009E720 File Offset: 0x0009C920 public static bool smethod_2(out Class524 selectedFile) { bool result; using (FileSelect fileSelect = new FileSelect()) { fileSelect.InputLabelMessage = "Please enter a reference name for this capture file."; fileSelect.InputText = "The ToonTown Spoofer : Joe Fish Capture Setup File Name"; fileSelect.FileInfo = Class110.Instance.JoeFishSettings.JoeFishCaptureSettings.Files.ToArray(); fileSelect.Filter = "Joe Fish Capture Setup File|*.jfc"; fileSelect.InstallFolder = Class291.JoeFishCaptureSettingsDirectory; fileSelect.FileExtension = ".jfc"; FileSelectBase fileSelectBase = fileSelect; if (Class460.eventHandler_0 == null) { Class460.eventHandler_0 = new EventHandler <EventArgs43 <string> >(Class460.smethod_6); } fileSelectBase.InputValidating += Class460.eventHandler_0; if (fileSelect.ShowDialog() == DialogResult.OK) { selectedFile = fileSelect.SelectedFileInfo; } else { selectedFile = null; } Class110.Instance.JoeFishSettings.JoeFishCaptureSettings.Files.Clear(); Class110.Instance.JoeFishSettings.JoeFishCaptureSettings.Files.AddRange(fileSelect.FileInfo); Class110.smethod_1(); result = Class524.smethod_1(selectedFile, null); } return(result); }
// Token: 0x06001495 RID: 5269 RVA: 0x000259C0 File Offset: 0x00023BC0 protected bool method_6(Class524 fileName) { if (Class524.smethod_0(fileName, null)) { return(this.method_7()); } string directoryName = Path.GetDirectoryName(fileName.string_1); if (!Directory.Exists(directoryName)) { Directory.CreateDirectory(directoryName); } this.bool_1 = true; bool flag; try { flag = this.vmethod_2(fileName); } finally { this.bool_1 = false; } if (flag) { this.FileModified = false; } return(flag); }
// Token: 0x0600149A RID: 5274 RVA: 0x0000512E File Offset: 0x0000332E protected virtual bool vmethod_6(out Class524 fileName) { if (this.openFileDialog_0.ShowDialog() == DialogResult.OK) { fileName = new Class524(this.openFileDialog_0.FileName); return(true); } fileName = null; return(false); }
private bool method_4(char A_0, CharacterFormat A_1) { bool flag = false; if (A_0 != '\0') { return(flag); } DocumentObject[] objArray = Class524.smethod_0(this.document_0, A_1); for (int i = 0; i < objArray.Length; i++) { this.documentObject_0.method_13(objArray[i]); } return(true); }
// Token: 0x06001C99 RID: 7321 RVA: 0x0005C2F8 File Offset: 0x0005A4F8 private void btnDelete_Click(object sender, EventArgs e) { if (this.method_2()) { Class524 @class = this.lbFiles.SelectedItem as Class524; if (DialogBox.smethod_6(string.Format(FileSelectBase.string_3, @class.string_0), FileSelectBase.string_4, new Enum39[] { Enum39.const_5, Enum39.const_6 }) == DialogResult.Yes) { Class369.smethod_3(@class.string_1); this.lbFiles.Items.Remove(@class); } } }
// Token: 0x06001B60 RID: 7008 RVA: 0x00054C7C File Offset: 0x00052E7C protected override bool vmethod_2(Class524 fileName) { bool result; try { this.class90_0.method_1(fileName.string_1); result = true; } catch (Exception ex) { DialogBox.smethod_7(ex, fileName.string_1); result = false; } return(result); }
// Token: 0x06001B5F RID: 7007 RVA: 0x00054C34 File Offset: 0x00052E34 protected override bool vmethod_5(Class524 path) { bool result; try { Class90 @class = new Class90(path.string_1); this.class90_0 = @class; result = true; } catch (Exception ex) { DialogBox.smethod_7(ex, path.string_1); result = false; } return(result); }
// Token: 0x060019EB RID: 6635 RVA: 0x00048F6C File Offset: 0x0004716C protected override bool vmethod_5(Class524 path) { bool result; try { Class101 @class = new Class101(path.string_1); this.class101_0 = @class; this.method_10(); if (this.PlaygroundList.Items.Count > 0) { this.PlaygroundList.Items[0].Selected = true; } result = true; } catch (Exception ex) { DialogBox.smethod_7(ex, path.string_1); result = false; } return(result); }
// Token: 0x06001B5D RID: 7005 RVA: 0x00054BC0 File Offset: 0x00052DC0 protected override void vmethod_7(Class524 fileName, bool modified) { if (modified) { if (Class524.smethod_0(fileName, null)) { this.Text = "Gardener Flora : WayPoint Setup : New File*"; return; } this.Text = string.Format("Gardener Flora : WayPoint Setup : {0}*", Path.GetFileName(fileName.string_1)); return; } else { if (Class524.smethod_0(fileName, null)) { this.Text = "Gardener Flora : WayPoint Setup : New File"; return; } this.Text = "Gardener Flora : WayPoint Setup : " + Path.GetFileName(fileName.string_1); return; } }
// Token: 0x06001CA2 RID: 7330 RVA: 0x0005C534 File Offset: 0x0005A734 public bool method_0(Class524 item) { this.class524_0 = item; return(Class524.smethod_0(item, this.string_0)); }
// Token: 0x06002694 RID: 9876 RVA: 0x0008929C File Offset: 0x0008749C protected override void vmethod_2(BinaryReader reader, int version) { this.GardenerFloraFiles = new Class114(reader); this.GardenerFloraCaptureFiles = new Class114(reader); if (reader.ReadBoolean()) { this.CustomCaptureFile = reader.ReadString(); } if (reader.ReadBoolean()) { this.CustomWayPointSettings = reader.ReadString(); } base.vmethod_2(reader, version); if (version == 1) { if (base.MaxColorRange == Class105.int_6) { base.MaxColorRange = Class105.int_5; } Class524[] array = this.GardenerFloraFiles.Files.ToArray(); Class524[] array2 = array; int i = 0; while (i < array2.Length) { Class524 @class = array2[i]; bool flag = false; try { using (Stream stream = File.Open(@class.string_1, FileMode.Open, FileAccess.Read, FileShare.None)) { using (BinaryReader binaryReader = new BinaryReader(stream)) { byte[] enumeration = binaryReader.ReadBytes(Class88.byte_0.Length); flag = enumeration.smethod_9(Class88.byte_0); } } goto IL_14B; } catch (Exception ex) { ex.smethod_1(new object[] { @class.string_1 }); flag = true; goto IL_14B; } goto Block_7; IL_140: i++; continue; Block_7: try { IL_102: File.Delete(@class.string_1); this.GardenerFloraFiles.Files.Remove(@class); } catch (Exception ex2) { ex2.smethod_1(new object[] { @class.string_1 }); } goto IL_140; IL_14B: if (flag) { goto IL_102; } goto IL_140; } } }
// Token: 0x0600149C RID: 5276 RVA: 0x00005104 File Offset: 0x00003304 protected virtual void vmethod_7(Class524 fileName, bool modified) { }
// Token: 0x06001499 RID: 5273 RVA: 0x000050FD File Offset: 0x000032FD protected virtual bool vmethod_5(Class524 fileName) { throw new NotImplementedException(); }
// Token: 0x06001498 RID: 5272 RVA: 0x00005104 File Offset: 0x00003304 protected virtual void vmethod_4(Class524 fileName) { }