private void ApplyProperties(TitleTrackingFormProperties m_Properties) { this.ForeColor = m_Properties.ForeColor; this.BackColor = m_Properties.BackColor; this.label1.Font = m_Properties.Font; this.Width = m_Properties.Width; this.Height = m_Properties.Height; this.timer1.Interval = m_Properties.Interval * 1000; this.label1.Height = m_Properties.Height - m_Properties.BorderWidth * 2; Invalidate(); }
private void Apply(TitleTrackingFormProperties m_Properties) { this.labelSample.BackColor = m_Properties.BackColor; this.labelSample.ForeColor = m_Properties.ForeColor; this.labelSample.Font = m_Properties.Font; this.labelSample.Width = m_Properties.Width - DragMouseRegionWidth * 2; this.labelSample.Height = m_Properties.Height - m_Properties.BorderWidth * 2; this.txtWidth.Text = m_Properties.Width.ToString(); this.txtHeight.Text = m_Properties.Height.ToString(); this.txtInterval.Text = m_Properties.Interval.ToString(); this.numBorderWidht.Value = m_Properties.BorderWidth; }
private void SettingsToolStripMenuItem_Click(object sender, EventArgs e) { var propertiesForm = new TrackWindowTitleFormPropertiesForm(m_Properties); var result = propertiesForm.ShowDialog(); if (result == DialogResult.OK) { m_Properties = propertiesForm.Properties; ApplyProperties(m_Properties); Invalidate(); } }
public TrackWindowTitleFormPropertiesForm(TitleTrackingFormProperties prop) : this() { this.m_Properties = prop; }