예제 #1
0
        public MainForm()
        {
            InitializeComponent();

            saveSelector.SelectedIndex       = 0;
            saveFileChooser.InitialDirectory = DefaultSaveDir;

            editorList      = new FileEditorGUI();
            editorList.Dock = DockStyle.Fill;
            this.Controls.Add(editorList);
            editorList.BringToFront();
        }
예제 #2
0
        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);
            }
        }