Beispiel #1
0
        private bool readSettings(string path)
        {
            AR_Settings read = XML_IO.Read(path, typeof(AR_Settings)) as AR_Settings;

            if (read == null)
            {
                return(false);
            }
            settings = read;


            if (settings.BmMain != null)
            {
                scrolledDoubleBuffer1.DataWidth  = settings.BmMain.Width;
                scrolledDoubleBuffer1.DataHeight = settings.BmMain.Height;
            }
            else
            {
                scrolledDoubleBuffer1.DataWidth  = 1000;
                scrolledDoubleBuffer1.DataHeight = 1000;
            }
            filter.Bitmap = settings.BmPic;
            settings.Path = path;
            return(true);
        }