コード例 #1
0
        public OBSettingsSources()
        {
            InitializeComponent();

            vm          = Globals.obSettings.Sources;
            DataContext = vm;
        }
コード例 #2
0
        public void Reset()
        {
            OBSettingsSources    def   = new OBSettingsSources();
            IList <PropertyInfo> props = new List <PropertyInfo>(typeof(OBSettingsSources).GetProperties());

            foreach (PropertyInfo prop in props)
            {
                prop.SetValue(this, prop.GetValue(def, null));
            }
        }