AllViewsForm(Views data) { m_data = data; InitializeComponent(); InitFormControls(); }
GenerateSheet() { Document doc = m_revitApp.ActiveUIDocument.Document; CreateSheet.Views view = new CreateSheet.Views( doc ); CreateSheet.AllViewsForm dlg = new CreateSheet.AllViewsForm( view ); if( dlg.ShowDialog() == DialogResult.OK ) view.GenerateSheet( doc ); }
GenerateSheet() { Document doc = m_revitApp.ActiveUIDocument.Document; CreateSheet.Views view = new CreateSheet.Views(doc); CreateSheet.AllViewsForm dlg = new CreateSheet.AllViewsForm(view); if (dlg.ShowDialog() == DialogResult.OK) { view.GenerateSheet(doc); } }