Пример #1
0
 public void OpenSelectedItem()
 {
     if (lookupItem != null)
     {
         var LookupView = new LookUpItemView();
         LookupView.ShowObject(lookupItem);
         LookupView.SetLookUpView(this);
         LookupView.ShowDialog();
     }
 }
Пример #2
0
        private void newItem_Click(object sender, EventArgs e)
        {
            if (Categorylist.SelectedItems.Count == 0)
            {
                return;
            }
            if (_selectedItem == null)
            {
                return;
            }
            var editor = new LookUpItemView();

            editor.SetLookUpView(this);
            editor.SetCatagory(_selectedItem);
            editor.ShowObject(null);
            editor.Show();
        }