Пример #1
0
        public void ReplaceResource(IResource old_resource, IResource new_resource)
        {
            resourceList.ReplaceResource(old_resource, new_resource);

            resourceListBox.ReplaceResource(old_resource, new_resource);

            resourceTreeView.Focus( );
        }
Пример #2
0
 protected override void OnClick(EventArgs e)
 {
     if (SelectedIndex != -1 && SelectedIndex != old_selected_index)
     {
         old_selected_index = SelectedIndex;
         resourceTreeView.ShowItem(Items[SelectedIndex] as IResource, showType);
         resourceTreeView.Focus( );
     }
     base.OnClick(e);
 }