void ItemShowCreateClass_Click(object sender, EventArgs e) { CreateClassFrmSettings settings = _plugin.settingsQuickGenerator.createClassSettings; CreateClassfrm frm = new CreateClassfrm(settings, _plugin); frm.FormClosed += new FormClosedEventHandler(saveSettingsFrmCreateClass); frm.ShowDialog(); }
public void Execute() { if (_plugin == null) return; CreateClassFrmSettings settings = _plugin.settingsQuickGenerator.createClassSettings; CreateClassfrm frm = new CreateClassfrm(_className ,true, settings , "as3", _plugin); frm.FormClosed += new System.Windows.Forms.FormClosedEventHandler(_plugin.SaveSettingsFrmCreateClass); frm.OnInsertPackage += new CreateClassfrm.InsertPackageHandleEvent(frm_OnInsertPackage); frm.ShowDialog(); ITabbedDocument newTabbedDocument = ASContext.MainForm.CurrentDocument; newTabbedDocument.Activate(); frm.FormClosed -= new System.Windows.Forms.FormClosedEventHandler(_plugin.SaveSettingsFrmCreateClass); frm.OnInsertPackage -= new CreateClassfrm.InsertPackageHandleEvent(frm_OnInsertPackage); }
public void Execute() { if (_plugin == null) return; ITabbedDocument td = ASCompletion.Context.ASContext.MainForm.CurrentDocument; CreateClassFrmSettings settings = _plugin.settingsQuickGenerator.createClassSettings; CreateClassfrm frm = new CreateClassfrm(_className ,true, settings , "haxe", _plugin); frm.FormClosed += new System.Windows.Forms.FormClosedEventHandler(_plugin.SaveSettingsFrmCreateClass); EventManager.AddEventHandler(_plugin, EventType.ProcessArgs); frm.ShowDialog(); EventManager.RemoveEventHandler(_plugin); td.Activate(); if(frm.package.Length==0) return; ASCompletion.Model.MemberModel mm = new ASCompletion.Model.MemberModel(); mm.Type = frm.package; ASCompletion.Completion.ASGenerator.InsertImport(mm,true); }