// 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; }
public CDialogPlayBet() { InitializeComponent(); //区域倍数 for (int i = 0; i < m_nMultiple.Length; ++i) { m_nMultiple[i] = 1; } m_InfoFont.CreateFont(12, 0, 0, 0, 400, 0, 0, 0, 134, 3, 2, CFont.ANTIALIASED_QUALITY, 2, "宋体"); m_MultipleFont.CreateFont(13, 0, 0, 0, 800, 0, 0, 0, 134, 3, 2, CFont.ANTIALIASED_QUALITY, 2, "宋体"); m_InfoBrush.CreateSolidBrush(CBrush.RGB(79, 87, 100)); GameGraphics.ZeroMemory(m_lLastRound); m_lPlayerScore = 0; m_lTheNote = 5; InitDialog(); }