public FrmTableEditor(int templateIndex, string file) { FrmTableEditor.Instance = this; this.InitializeComponent(); this.LoadIcons(); this.undoManager.DataChanged += this.UndoManagerDataChanged; Helper.Settings.LoadTemplates(); if (file != null) { FileManager fileManager = new FileManager(file) { ReadWriteComments = true, // always read comments }; EditorIniData iniContent = fileManager.Read(FileEncoding.Automatic, templateIndex); this.Data = new TableData(iniContent); this.isBini = fileManager.IsBini; this.SetFile(file); } else { this.Data = new TableData { TemplateIndex = templateIndex }; this.SetFile(string.Empty); } this.SetTheme(); SimpleDropSink dropSink = this.objectListView1.DropSink as SimpleDropSink; if (dropSink != null) { dropSink.CanDropBetween = true; dropSink.CanDropOnItem = false; } this.RefreshSettings(); }
public DataChangedNotificationMessage(string notification, DataChangedType dataChanged) : base(notification) { DataChanged = dataChanged; }