Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Saving Tree Structure using Serialization

, 22 Jun 2009
This article demonstrates editing a tree structure and saving the job using serialization.
TreeSave.zip
TreeSave
ABSTreeSaver
bin
Debug
ABSTreeSaver.dll
Properties
HostApp
bin
Debug
ABS.TreeNodeNavigator.dll
ABSTreeSaver.dll
HostApp.exe
HostApp.vshost.exe
tree1.aks
HostApp.suo
Properties
Settings.settings
Rectangle Blue.ico
TreeReader.suo
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace HostApp
{    
    public partial class frmEditInfo : Form
    {
        #region User Defined variable
        string tagValue = String.Empty;
        string nameValue = String.Empty;
        #endregion
        #region user Defined Property
        public string TagValue
        {
            get { return tagValue; }
            set { tagValue = value; }
        }
        public string NameValue
        {
            get { return nameValue; }
            set { nameValue = value; }
        }
        #endregion
        public frmEditInfo()
        {
            InitializeComponent();
        }

        private void frmEditInfo_Load(object sender, EventArgs e)
        {
            txtname.Text = nameValue;
            txtTag.Text = tagValue;
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            nameValue = txtname.Text;
            tagValue = txtTag.Text;
            this.DialogResult = DialogResult.OK;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.No;
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Siddhartha S.
Software Developer (Senior)
India India
Sid loves programming and has technical experience developing desktop based solutions using C#.Net, Winforms, WPF.
He has experience of Software services, I-Banks and Product development environments.
He also has a deep understanding of Product Development Lifecycle and Agile methodology of developing softwares.
 
Besides programming he is also fond of music, photography and cooking.
He lives in Mumbai with his wife.
Follow on   LinkedIn

| Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 22 Jun 2009
Article Copyright 2009 by Siddhartha S.
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid