common/Ui/GenesisToolBox/FrmMapping.cs

63 lines
1.7 KiB
C#
Raw Normal View History

2026-04-23 15:50:07 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Xylem.Common.Ui.GenesisToolBox
{
public partial class FrmMapping : Form
{
public FrmMapping()
{
InitializeComponent();
}
private void btnConnect_Click(Object sender, EventArgs e)
{
//if (cbComSlot.SelectedItem != null) // && cbComSlot.SelectedValue is ListBoxItem)
//{
// Int32 slotNR = 0;
// _currentPcbId = "";
// if (!string.IsNullOrEmpty(cbComSlot.SelectedItem.ToString()) &&
// int.TryParse(cbComSlot.SelectedItem.ToString(), out slotNR))
// {
// try
// {
// _meterBatch.RemoveAllMeters();
// _currentGenesis = new GenesisMeter();
// try
// {
// _currentGenesis.SetupFromConfigFile(slotNR);
// _meterBatch.AddMeter(_currentGenesis);
// }
// catch (Exception ex)
// {
// Logger.Value.Error(ex, $"Slot #{slotNR} failed: {ex.Message}");
// }
// _currentPcbId = _currentGenesis.GetPcbId();
// }
// catch (Exception ex)
// {
// Logger.Value.Error(ex, ex.Message);
// }
// }
//}
}
}
}