Пример #1
0
        public frmMainWindow(HostSettingsManager hsm)
        {
            InitializeComponent();
            _hsm = hsm;

            cmbDevices.DisplayMember = "DisplayName";
            cmbDevices.ValueMember = "Id";
            cmbDevices.DataSource = _hsm;
        }
Пример #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            HostSettingsManager hsm = new HostSettingsManager("hostsettings.xml");

            Application.Run(new frmMainWindow(hsm));
        }
 public frmSNMPSettings(HostSettingsManager hsm)
 {
     _hsm = hsm;
     InitializeComponent();
 }
 public frmManageDevices(HostSettingsManager hsm)
 {
     InitializeComponent();
     _hsm = hsm;
 }