public FrmConfigure(SettingsManagement settings)
 {
     m_settings = settings;
     InitializeComponent();
     dgvMeasurements.DataSource = settings.MyData.Tables["Measurements"];
     dgvTerminals.DataSource    = settings.MyData.Tables["Terminals"];
     TxtGEPPort.Text            = settings.GEPPort;
     TxtHistorianInstance.Text  = settings.HistorianDatabase;
     TxtHistorianPort.Text      = settings.HistorianPort;
     TxtServerIP.Text           = settings.ServerIP;
 }
 public FrmConfigure(SettingsManagement settings)
 {
     m_settings = settings;
     InitializeComponent();
     dgvMeasurements.DataSource = settings.MyData.Tables["Measurements"];
     dgvTerminals.DataSource = settings.MyData.Tables["Terminals"];
     TxtGEPPort.Text = settings.GEPPort;
     TxtHistorianInstance.Text = settings.HistorianDatabase;
     TxtHistorianPort.Text = settings.HistorianPort;
     TxtServerIP.Text = settings.ServerIP;
 }
 public FrmMain()
 {
     m_settings = new SettingsManagement(Path.Combine(FilePath.GetApplicationDataFolder(), "config.xml"));
     InitializeComponent();
 }
Exemple #4
0
 public FrmMain()
 {
     m_settings = new SettingsManagement(Path.Combine(FilePath.GetApplicationDataFolder(), "config.xml"));
     InitializeComponent();
 }