public Wizard() : base(GettextCatalog.GetString ("Reverse Engineering")) { _druid = new Gnome.Druid (); _start = new DruidPageEdge (Gnome.EdgePosition.Start); _finish = new DruidPageEdge (Gnome.EdgePosition.Finish); _pImportingLevel = new DruidPageStandard (); _pImportingLevelAccess = new DruidPageStandard (); _pImportingParameters = new DruidPageStandard (); _pAssemblies = new DruidPageStandard (); _assemblyImporter = new AssemblyImporter (); _importingLevel = AssemblyImporterLevel.AssemblyImport; _start.Title = GettextCatalog.GetString ("Reverse Engineering"); _start.Text = GettextCatalog.GetString ("In the following pages you will be able to import .NET assemblies and then build its UML model.\n\nClick Forward to continue"); _finish.Title = GettextCatalog.GetString ("Start reverse engineering"); _finish.Text = GettextCatalog.GetString ("Click Apply to proceed the reverse engineering, when finished a dialog window will pop up."); _finish.FinishClicked += OnReverseEngineering; CreateAssemblies (); CreateImportingLevel (); CreateImportingParameters (); CreateImportingLevelAccess (); _druid.AppendPage (_start); _druid.AppendPage (_pAssemblies); _druid.AppendPage (_pImportingLevel); _druid.AppendPage (_pImportingParameters); _druid.AppendPage (_pImportingLevelAccess); _druid.AppendPage (_finish); _druid.Cancel += OnCancel; Add (_druid); SetDefaultSize (530, 295); Modal = true; WindowPosition = Gtk.WindowPosition.CenterAlways; Icon = PixbufLoader.GetIcon ("main_icon.png"); ShowAll (); Resize (1, 1); }
public AssemblyImporter() { _level = AssemblyImporterLevel.AssemblyImport; _assemblies = new ArrayList (); _elements = new Hashtable (); _packages = new Hashtable (); _xmiElements = new ArrayList (); _importClasses = true; _importDelegates = true; _importEnumerations = true; _importEvents = true; _importInterfaces = true; _importPublicFields = true; _importPublicMethods = true; _importPrivateFields = true; _importPrivateMethods = true; _importProtectedFields = true; _importProtectedMethods = true; _importStructs = true; }
private void RadioSelectedFullImport(object sender, EventArgs e) { _importingLevel = AssemblyImporterLevel.FullImport; }
private void CreateImportingLevel() { _pImportingLevel.Title = GettextCatalog.GetString ("Select importing level"); RadioButton assemblyImport = new RadioButton (GettextCatalog.GetString ("Import _only elements within assembly.")); assemblyImport.Clicked += RadioSelectedAssemblyImport; RadioButton fullImport = new RadioButton (GettextCatalog.GetString ("F_ull import from assembly.")); fullImport.Clicked += RadioSelectedFullImport; fullImport.Group = assemblyImport.Group; this._importingLevel = AssemblyImporterLevel.AssemblyImport; VBox vbox = new VBox (); vbox.PackStart (assemblyImport); vbox.PackStart (fullImport); _pImportingLevel.AppendItem ("", vbox,""); }
public AssemblyImporter(AssemblyImporterLevel level) : this() { _level = level; }