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