예제 #1
0
    private void CollapsedItemClicked(ExtensionControlCollapsed sender)
    {
      var listCtrl = Parent.Parent as ExtensionListControl;
      if (listCtrl.SelectedItem != null) listCtrl.SelectedItem.Collapse();
      extensionControlCollapsed.Visible = false;
      if (!extensionControlExpanded.IsInitialized)
        extensionControlExpanded.Initialize(isInstalled, meetsAllDependencies, Package, UpdatePackage);
      extensionControlExpanded.Visible = true;
      Height = extensionControlExpanded.PreferredSize.Height + Margin.Top + Margin.Bottom;

      listCtrl.SelectedItem = this;
    }
예제 #2
0
        private void CollapsedItemClicked(ExtensionControlCollapsed sender)
        {
            var listCtrl = Parent.Parent as ExtensionListControl;

            if (listCtrl.SelectedItem != null)
            {
                listCtrl.SelectedItem.Collapse();
            }
            extensionControlCollapsed.Visible = false;
            if (!extensionControlExpanded.IsInitialized)
            {
                extensionControlExpanded.Initialize(isInstalled, meetsAllDependencies, Package, UpdatePackage);
            }
            extensionControlExpanded.Visible = true;
            Height = extensionControlExpanded.PreferredSize.Height + Margin.Top + Margin.Bottom;

            listCtrl.SelectedItem = this;
        }