private void propertiesMenu_Click(object sender, System.EventArgs e)
 {
     if (treeView1.SelectedNode.Tag is ActiveRecordDescriptor)
     {
         using (ActiveRecordPropertiesDialog d =
                    new ActiveRecordPropertiesDialog(
                        treeView1.SelectedNode.Tag as ActiveRecordDescriptor,
                        _model.CurrentProject))
         {
             d.ShowDialog();
         }
     }
 }
Example #2
0
        private void ShowShapeProperties(Shape shape)
        {
            if (shape is ActiveRecordBaseClassShape)
            {
                ActiveRecordBasePropertiesDialog d = new ActiveRecordBasePropertiesDialog();
                d.ShowDialog();
            }
            else if (shape is ActiveRecordShape)
            {
                ActiveRecordDescriptor ar = (shape as ActiveRecordShape).ActiveRecordDescriptor;

                ActiveRecordPropertiesDialog dlg =
                    new ActiveRecordPropertiesDialog(ar, _model.CurrentProject);

                dlg.ShowDialog();
            }
        }