private void FormLogin_Load(object sender, EventArgs e) { if (DesignMode) { return; } m_viewModel = new FaceAlarmControlViewModel(); advTree1.DataSource = m_viewModel.FaceControlList; }
private void FormLogin_Load(object sender, EventArgs e) { if (DesignMode) { return; } m_viewModel = new FaceAlarmControlViewModel(); comboTreeCamera.DataSource = new SettingViewModel().CameraInfoList; comboTreeBlackListHandle.DataSource = BlackListViewModel.Instance.BLackInfoList; comboBoxExControlNation.ValueMember = "Type"; comboBoxExControlNation.DisplayMember = "Name"; comboBoxExControlNation.DataSource = DataModel.Constant.PeopleNationTypeInfos; comboBoxExControlSex.ValueMember = "Type"; comboBoxExControlSex.DisplayMember = "Name"; }