private void DeviceSearchControlView_Load(object sender, EventArgs e) { this.m_SearchConfig = this.m_Application.GetAccountConfig(this.m_Account, typeof(AC.Base.DeviceSearchs.DeviceSearchAccountConfig)) as AC.Base.DeviceSearchs.DeviceSearchAccountConfig; this.IsFilterView = true; this.IsAdvanced = false; this.DeviceListCanChildrenChange(); this.DeviceListItemInfoChange(); }
private void tsbSetting_Click(object sender, EventArgs e) { DeviceSearchSettingForm _DeviceSearchSettingForm = new DeviceSearchSettingForm(this.m_Application, this.m_Account); _DeviceSearchSettingForm.StartPosition = FormStartPosition.CenterParent; if (_DeviceSearchSettingForm.ShowDialog(this) == DialogResult.OK) { bool bolDefaultChange = this.m_SearchConfig.UseDefaultConfig; this.m_SearchConfig = this.m_Application.GetAccountConfig(this.m_Account, typeof(AC.Base.DeviceSearchs.DeviceSearchAccountConfig)) as AC.Base.DeviceSearchs.DeviceSearchAccountConfig; if (this.m_SearchConfig.UseDefaultConfig == bolDefaultChange) { bolDefaultChange = false; } else { bolDefaultChange = true; } if (this.filterBasic != null && (_DeviceSearchSettingForm.FilterIsChange || bolDefaultChange)) { this.FilterBasicInit(); } this.DeviceListCanChildrenChange(); if (bolDefaultChange || _DeviceSearchSettingForm.ListIsChange || _DeviceSearchSettingForm.PageSizeIsChange) { if (this.IsFilterView == false && (bolDefaultChange || _DeviceSearchSettingForm.PageSizeIsChange)) { this.deviceList.PageSize = this.GetPageSize(); if (_DeviceSearchSettingForm.ListIsChange == false) { PageGoto(this.deviceList.PageNum); } } if (_DeviceSearchSettingForm.ListIsChange) { this.DeviceListItemInfoChange(); if (bolDefaultChange || _DeviceSearchSettingForm.PageSizeIsChange) { this.PageChanged(); } } } } }