예제 #1
0
        private void Window_Closed(object sender, EventArgs e)
        {
            cfg.cb_waken            = (bool)cb_waken.IsChecked;
            cfg.cb_firewall         = (bool)cb_firewall.IsChecked;
            cfg.cb_ip               = (bool)cb_ip.IsChecked;
            cfg.cb_gateway          = (bool)cb_gateway.IsChecked;
            cfg.cb_swsoft_startup   = (bool)cb_swsoft_startup.IsChecked;
            cfg.cb_swsoft_privilege = (bool)cb_swsoft_privilege.IsChecked;
            cfg.cb_vnc              = (bool)cb_vnc.IsChecked;
            cfg.cb_klite            = (bool)cb_klite.IsChecked;
            cfg.cb_office           = (bool)cb_office.IsChecked;
            cfg.cb_power            = (bool)cb_power.IsChecked;
            cfg.cb_zoom             = (bool)cb_zoom.IsChecked;
            cfg.save();
            //progMgr.Close();
            FileStream fs = new FileStream(uninstall, FileMode.Create);

            formatter.Serialize(fs, new List <INSTALLED>(lv_uninstalled.Items.Cast <INSTALLED>().ToArray()));
            fs.Close();
            if (flashdisk != null)
            {
                System.IO.File.Copy(cfg.file, flashdisk + "部署工具/config.ini", true);
            }
        }