예제 #1
0
        /// <summary>
        /// Filter Locations Form
        /// </summary>
        public void FilterLocations()
        {
            FormSelectLocations form = new FormSelectLocations(new LocationsDAO().GetSelectedLocations(), new LocationSettingsDAO().GetSetting("LocationFilter"));

            if (form.ShowDialog() == DialogResult.OK)
            {
                new LocationSettingsDAO().SetSetting("LocationFilter", form.SelectedAssetIds);
                new LocationSettingsDAO().SetSetting("LocationFilterGroups", form.SelectedGroupNames);
            }
        }
예제 #2
0
        private void bnLocationFilter_Click(object sender, EventArgs e)
        {
            //FormSelectLocations form = new FormSelectLocations("", new AssetDAO().ConvertIdListToNames(_selectedAssetIds, ','));
            FormSelectLocations form = new FormSelectLocations("", _selectedAssetIds);

            if (form.ShowDialog() == DialogResult.OK)
            {
                //string lAssetIdList = new AssetDAO().ConvertNameListToIds(form.SelectedAssetIds);
                string lAssetIdList = form.SelectedAssetIds;
                lAssetIdList      = lAssetIdList.Replace(';', ',');
                _selectedAssetIds = lAssetIdList;
                PopulateLocationLabel();
            }
        }