Example #1
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            UfeFileMessageConverter converter = new UfeFileMessageConverter();

            IDataProvider <ProjectInfo> Provider;

            Provider             = new DataProvider();
            LibraryGroup.Current = Provider.Get().LibraryGroups[0];

            MessageInfo message = LibraryGroup.Current.Messages.GetByName("text");
            SignInfo    sign    = new SignInfo();

            sign.Width     = 100;
            sign.Height    = 64;
            converter.Sign = sign;
            converter.Convert(message);
            converter.Generate();
            //IDataProvider<ProjectInfo> Provider;
            //Provider = new DataProvider();
            //LibraryGroup.Current = Provider.Get().LibraryGroups[0];

            //MessageInfo message = LibraryGroup.Current.Messages.GetByName("a");
            //MessageSaver manager = new MessageSaver();
            //Size newSign = new Size(100, 200);
            ////manager.NewSize = newSign;
            //SignInfo sign = new SignInfo();
            //sign.Width = 200;
            //sign.Height = 100;
            //manager.Sign = sign;
            //manager.Item = message;
            //manager.Save();
        }
Example #2
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            UfeFileMessageConverter converter = new UfeFileMessageConverter();

            IDataProvider <ProjectInfo> Provider;

            Provider             = new DataProvider();
            LibraryGroup.Current = Provider.Get().LibraryGroups[0];

            MessageInfo message = LibraryGroup.Current.Messages.GetByName("Image");
            SignInfo    sign    = new SignInfo();

            sign.Width     = 100;
            sign.Height    = 64;
            converter.Sign = sign;
            converter.Convert(message);
            converter.Generate();
        }
Example #3
0
        private void Generate(string name)
        {
            //MessageInfo
            var msg = project.LibraryGroups[0].Messages.GetByName(name);
            //Sign
            SignInfo sign = new SignInfo();

            sign.Width  = 96;
            sign.Height = 32;

            //UfeFileMessageConverter
            UfeFileMessageConverter converter = new UfeFileMessageConverter();

            converter.Sign = sign;

            //UFE convert message
            converter.Convert(msg);
            //UFE generate message
            converter.Generate();
        }