public void OpenSelectedItem() { if (lookupItem != null) { var LookupView = new LookupEdit(); LookupView.ShowObject(lookupItem.ItemId); LookupView.SetLookUpView(this); LookupView.ShowDialog(); } }
private void newToolStripButton_Click(object sender, EventArgs e) { if (categoryList.SelectedItems.Count == 0) { return; } if (_selectedItem == null) { return; } var editor = new LookupEdit(); editor.SetLookUpView(this); editor.SetCatagory(_selectedItem); editor.ShowObject(null); editor.Show(); }