public MainForm() { InitializeComponent(); saveSelector.SelectedIndex = 0; saveFileChooser.InitialDirectory = DefaultSaveDir; editorList = new FileEditorGUI(); editorList.Dock = DockStyle.Fill; this.Controls.Add(editorList); editorList.BringToFront(); }
public override void MouseDoubleClick(Aga.Controls.Tree.TreeNodeAdvMouseEventArgs args) { base.MouseDoubleClick(args); if (args.Node.Tag != null && !(args.Node.Tag is ValueEntry)) { return;//if this is not a value entry, value is not relevant } ValueEntry ent = (ValueEntry)args.Node.Tag; if (ent == null) {//this is the "add new entry" button this.BeginEdit(); } else { FileEditorGUI egui = (FileEditorGUI)this.Parent.Model; egui.GotoLink(ent.Link, args.Node); } }