public static VoiroConfig Load(Stream stream)
        {
            VoiroConfig configData = null;

            try
            {
                System.Xml.Serialization.XmlSerializer xs = new XmlSerializer(typeof(VoiroConfig));
                configData = xs.Deserialize(stream) as VoiroConfig;
            }
            catch { }

            return(configData != null ? configData : new VoiroConfig());
        }
 public VoiceroidConfigForm(string title)
 {
     InitializeComponent();
     configfname         = title + ".config";
     config              = VoiroConfig.Load(configfname);
     textBox_main.Text   = config.mainclassname;
     textBox_rich.Text   = config.richtextclassname;
     textBox_butten.Text = config.buttenclassname;
     textBox_tab.Text    = config.tabclassname;
     textBox_Edit.Text   = config.editboxclassname;
     if (config.titlename == "")
     {
         config.titlename = title;
     }
     textBox_title.Text = config.titlename;
 }