예제 #1
0
파일: Page.cs 프로젝트: physalis/MeeGen
        public SaveLocalPage(ExportWizard wiz)
            : base()
        {
            Build();

            wiz.Close += delegate(object sender, EventArgs e)
            {
                ExportFormat format = ExportFormat.SVG;

                string filename = this.entry1.Text;

                format = (ExportFormat)Enum.Parse(typeof(ExportFormat), combobox1.ActiveText.Substring(0,3));

                wiz.ShapeManager.Export(this.entry1.Text, format);

                //TODO: Add credits to PNG and PDF as well
                if(format == ExportFormat.SVG)
                {
                    System.IO.StreamWriter writer = new System.IO.StreamWriter(filename, true);
                    writer.Write("<!-- created with the MeeGen avatar-designer (http://meego.com) -->");
                    writer.Close();
                }

                wiz.Destroy();
            };
        }
예제 #2
0
파일: Page.cs 프로젝트: physalis/MeeGen
        public ExportMeeGoForumPage(ExportWizard wiz)
        {
            this.Build();
            this.ShowAll();

            wiz.Close += delegate(object sender, EventArgs e)
            {
                //TODO implement
                MessageBox.ShowInfo("Sorry, but this feature isn't implemeted yet.");
                wiz.Destroy();
            };
        }