Exemplo n.º 1
0
 ///xmlファイルの読み込み
 private void xmlLoad()
 {
     System.IO.FileStream FO = new System.IO.FileStream(@"setting.xml", System.IO.FileMode.Open);
     System.Xml.Serialization.XmlSerializer xs = new System.Xml.Serialization.XmlSerializer(typeof(setting));
     Xset = (setting)xs.Deserialize(FO);
     FO.Close();
 }
Exemplo n.º 2
0
        ///コンストラクタ
        public Form1()
        {
            InitializeComponent();
            xmlLoad();
            xset2favslist();

            pathList = new List <string>();
            if (Xset == null)
            {
                Xset = new setting();
            }
            if (Xset.filters == null)
            {
                Xset.filters = new Filters();
            }
            if (Xset.filters.fil == null)
            {
                Xset.filters.fil = new List <Filter>();
            }

            FavsCheckListBox.ContextMenuStrip = FCLBMenuStrip;
            //Xset.filters = new Filters();
            //Xset.filters.fil = new List<Filter>();
            //Xset.filters.fil.Add(new Filter());
            //Xset.filters.fil[0].filterName = "test";
            //Xset.filters.fil[0].fav = new List<string>();
            //Xset.filters.fil[0].fav.Add("aaa");
            //xmlSave();
        }