// an event handler for menuItemSelect to use when connecting its event handler. private void MenuItemInsert_Click(Object sender, System.EventArgs e) { if (_insertFilter != null) { LayerFilterDialog dlg = new LayerFilterDialog(); dlg.Text = "Choose Layers to Draw Into"; dlg.FilterType = FilterType.Insertable; dlg.ListLabel = "&Draw Into Layers:"; dlg.SelectableLayerFilter = _selectFilter; dlg.EditableLayerFilter = _editFilter; dlg.InsertionLayerFilter = _insertFilter; dlg.Layers = Layers; dlg.Sizable = false; if (dlg.ShowDialog() == DialogResult.OK) { UpdateSelectText(); UpdateEditText(); UpdateInsertText(); } } }
// an event handler for menuItemSelect to use when connecting its event handler. private void MenuItemSelect_Click(Object sender, System.EventArgs e) { if (_selectFilter != null) { LayerFilterDialog dlg = new LayerFilterDialog(); dlg.Text = "Choose Layers to be Selectable"; dlg.FilterType = FilterType.Selectable; dlg.ListLabel = "&Selectable Layers:"; dlg.SelectableLayerFilter = _selectFilter; dlg.EditableLayerFilter = _editFilter; dlg.InsertionLayerFilter = _insertFilter; dlg.Layers = Layers; dlg.Sizable = false; if (dlg.ShowDialog() == DialogResult.OK) { UpdateSelectText(); UpdateEditText(); UpdateInsertText(); } } }