コード例 #1
0
        private void button_save_Click(object sender, EventArgs e)
        {
            Components.XmlDocumentParser.Com_XmlDocumentParser cxml = new Components.XmlDocumentParser.Com_XmlDocumentParser();

            Hashtable data = GetCustomNodeData();

            //Lib.CoreLib cl = new Lib.CoreLib();

            //data = cl.SortByKey(data);

            cxml.SetXmlData(data, "userdata");
        }
コード例 #2
0
        private void button_save_Click(object sender, EventArgs e)
        {
            Components.XmlDocumentParser.Com_XmlDocumentParser cxml = new Components.XmlDocumentParser.Com_XmlDocumentParser();

            Hashtable data = GetCustomNodeData();

            //Lib.CoreLib cl = new Lib.CoreLib();

            //data = cl.SortByKey(data);

            cxml.SetXmlData(data, "userdata");
        }
コード例 #3
0
        private void uploadControl1_OnFilePathChanged(string file)
        {
            if (string.IsNullOrEmpty(file))
            {
                return;
            }

            try
            {
                this.treeView_custom.Nodes.Clear();
                Components.XmlDocumentParser.Com_XmlDocumentParser cxml = new Components.XmlDocumentParser.Com_XmlDocumentParser();
                Hashtable user = cxml.GetXmlDataFromFile(file);
                CustomTreeLoader((Hashtable)user["productFiltering"]);
            }
            catch { MessageBox.Show("Invalid file.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error); }
        }
コード例 #4
0
        private void uploadControl1_OnFilePathChanged(string file)
        {
            if (string.IsNullOrEmpty(file))
                return;

            try
            {
                this.treeView_custom.Nodes.Clear();
                Components.XmlDocumentParser.Com_XmlDocumentParser cxml = new Components.XmlDocumentParser.Com_XmlDocumentParser();
                Hashtable user = cxml.GetXmlDataFromFile(file);
                CustomTreeLoader((Hashtable)user["productFiltering"]);
            }
            catch { MessageBox.Show("Invalid file.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error); }
        }