コード例 #1
0
        internal void Update()
        {
            m_Layout.Data1 = LayoutFileReader.GetBytes(SerializeToString(FrontSideLayout));
            m_Layout.Data2 = LayoutFileReader.GetBytes(SerializeToString(RearSideLayout));

            IsChanged = true;
        }
コード例 #2
0
        private void Load()
        {
            try
            {
                m_Layout = new Layout(m_FileName);
            }
            catch (FileLoadException)
            {
                MessageBox.Show("Layout file " + m_FileName + " cannot be loaded!", "Supplement Processor", MessageBoxButton.OK, MessageBoxImage.Exclamation);
                IsLoading = false;
                return;
            }

            FrontSideLayout = ReadLayoutXml(LayoutFileReader.GetString(m_Layout.Data1));
            RearSideLayout  = ReadLayoutXml(LayoutFileReader.GetString(m_Layout.Data2));

            //FrontSideLayout.BackgroundImage = m_Layout.Data3;
            //RearSideLayout.BackgroundImage = m_Layout.Data4;

            IsLoading = false;

            if (OnSupplementLayoutLoaded != null)
            {
                OnSupplementLayoutLoaded(this, EventArgs.Empty);
            }
        }