コード例 #1
0
		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;
		}