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(); }; }
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(); }; }