public CtlPositions(ref Config config, ref FrmClock clock) { InitializeComponent(); m_config = config; m_clock = clock; UpdateList(); if (lstPositions.Items.Count != 0) { lstPositions.SelectedIndex = 0; } }
public FrmConfig(Config config, FrmClock clock) { InitializeComponent(); m_configOld = config; m_config = config.Clone() as Config; m_clock = clock; m_ctlStyles = new CtlStyles(ref m_config); tabStyles.Controls.Add(m_ctlStyles); m_ctlStyles.Dock = DockStyle.Fill; m_ctlPositions = new CtlPositions(ref m_config, ref clock); tabPositions.Controls.Add(m_ctlPositions); m_ctlPositions.Dock = DockStyle.Fill; }