private void ShowElementInfo() { var dlg = new ElementInfoDialog(this.Element); dlg.Owner = Application.Current.MainWindow; dlg.ShowDialog(); }
public override void SetElementValue(int n, ElementInfo ei) { if (n == 2) { modelName = lastModelName = ei.Textf.Text; model = CustomLogicModel.getModelWithNameOrCopy(modelName, model); SetupPins(); allocNodes(); SetPoints(); return; } if (n == 3) { var editDialog = new ElementInfoDialog(model); CirSim.CustomLogicEditDialog = editDialog; var pos = CirSim.Sim.DisplayLocation; editDialog.Show(pos.X + P1.X, pos.Y + P1.Y); return; } base.SetElementValue(n, ei); }