Пример #1
0
        /// <summary>
        /// Configure the selected MGV50.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CmdConfigureMgv50Click(object sender, EventArgs e)
        {
            var currentAddress = SelectedAddress;

            if (currentAddress != null)
            {
                var dialog = new LocoIOConfigurationForm();
                dialog.Initialize(appState.LocoBuffer, currentAddress);
                dialog.Show(this);
            }
        }
Пример #2
0
 /// <summary>
 /// Configure the selected MGV50.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void CmdConfigureMgv50Click(object sender, EventArgs e)
 {
     var currentAddress = SelectedAddress;
     if (currentAddress != null)
     {
         var dialog = new LocoIOConfigurationForm();
         dialog.Initialize(appState.LocoBuffer, currentAddress);
         dialog.Show(this);
     }
 }