// constructor for runtime instance public PG2VNCViewer(PG2VNCViewer other, GraphicItemVisual otherVisual) : base(other, otherVisual) { Log.loglevel = other.Log.loglevel; host = other.host; port = other.port; pass = other.pass; viewonly = other.viewonly; stretch = other.stretch; autoconnect = other.autoconnect; connect = other.connect; hideRemoteCursor = other.hideRemoteCursor; keyconvert = other.keyconvert; if (keyconvert != "") { keytable.parseConvertion(keyconvert, Log); } KeySim1Keycodes = other.KeySim1Keycodes; KeySim2Keycodes = other.KeySim2Keycodes; KeySim3Keycodes = other.KeySim3Keycodes; MouseSim1X = other.MouseSim1X; MouseSim1Y = other.MouseSim1Y; MouseSim1Button = other.MouseSim1Button; MouseSim2X = other.MouseSim2X; MouseSim2Y = other.MouseSim2Y; MouseSim2Button = other.MouseSim2Button; MouseSim3X = other.MouseSim3X; MouseSim3Y = other.MouseSim3Y; MouseSim3Button = other.MouseSim3Button; }
// constructor for runtime instance public MyfirstElement(MyfirstElement other, GraphicItemVisual otherVisual) : base(other, otherVisual) { textBrush = other.textBrush; text = other.text; font = other.font; speed = other.speed; }
public PG2SqlQueryBox(PG2SqlQueryBox ai, GraphicItemVisual visual) : base(ai, visual) { this.triggCommand = new RelayCommand(_ => { this.ExecuteQuery(); this.DrawItem(this.response); }); this.textBrush = ai.textBrush; this.connectionString = ai.connectionString; this.query = ai.query; this.showTimestamp = ai.showTimestamp; this.target = ai.target; this.trigger = ai.trigger; this.updateTime = ai.updateTime; }
// returns a new instance public override GraphicItem GetRunTimeInstance(IElementView elementView, GraphicItemVisual visual) { return(new PG2VNCViewer(this, visual)); }