public bool Run(ActiveRecordShape shape)
		{
			using (NewARClassWizard wizard = new NewARClassWizard(Model))
			{
				if (wizard.ShowDialog(Workspace.ActiveWindow) != DialogResult.OK)
				{
					return false;
				}

				Model.CurrentProject.AddActiveRecordDescriptor(wizard.ActiveRecordDescriptor);

				foreach(ActiveRecordDescriptor dependent in wizard.Dependents)
				{
					Model.CurrentProject.AddActiveRecordDescriptor(dependent);
				}

				Model.Update();

				return true;
			}
		}
예제 #2
0
		private Shape ObtainBaseShape(ActiveRecordShape arshape)
		{
			return _desc2Shape[arshape.ActiveRecordDescriptor.Table.DatabaseDefinition.ActiveRecordBaseDescriptor] as Shape;
		}