Skip to content

Conversation

@JuditRose
Copy link
Contributor

@JuditRose JuditRose commented Mar 25, 2019

Fixes #585

Components copied from framework.

@Tanya-Solyanik
Copy link
Contributor

// Shared between dlls

please remove


Refers to: src/Common/src/CompModSwitches.cs:12 in 0acc17c. [](commit_id = 0acc17c839d686490efef0257478a271d6952e0d, deletion_comment = False)

@Tanya-Solyanik
Copy link
Contributor

    public static extern IntPtr SetParent(HandleRef hWnd, HandleRef hWndParent);

SetParent is already available here, you don;t have to add it in NativeMethods. Please review other methods that you added to NativeMethods class as well. Perhaps all you need to do is to change the call site to Unsafe class name.


Refers to: src/Common/src/UnsafeNativeMethods.cs:1001 in 0acc17c. [](commit_id = 0acc17c839d686490efef0257478a271d6952e0d, deletion_comment = False)

@JuditRose JuditRose force-pushed the WFI-585-port-system-windows-forms-design-components branch from 0acc17c to 1969dc2 Compare March 26, 2019 17:18
@codecov
Copy link

codecov bot commented Mar 26, 2019

Codecov Report

Merging #632 into master will decrease coverage by 1.4604%.
The diff coverage is 0.12187%.

@@                 Coverage Diff                 @@
##              master        #632         +/-   ##
===================================================
- Coverage   27.34119%   25.88078%   -1.46041%     
===================================================
  Files            948         975         +27     
  Lines         254700      268427      +13727     
  Branches       33853       35934       +2081     
===================================================
- Hits           69638       69471        -167     
- Misses        181175      195083      +13908     
+ Partials        3887        3873         -14
Flag Coverage Δ
#Debug 25.88078% <0.12187%> (-1.46041%) ⬇️
#production 17.80493% <0.12187%> (-1.14705%) ⬇️
#test 98.68298% <ø> (+0.01118%) ⬆️

@JuditRose
Copy link
Contributor Author

Thanks for the comments, all addressed/fixed

@zsd4yr
Copy link
Contributor

zsd4yr commented Mar 28, 2019

LGTM @JuditRose

@Tanya-Solyanik
Copy link
Contributor

consider creating an issue to use these consts from the common assembly once it's available


Refers to: src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/DesignerActionPanel.cs:30 in 870ea14. [](commit_id = 870ea14, deletion_comment = False)

@Tanya-Solyanik
Copy link
Contributor

                _formActive = true;

PLease scan all files you are porting for TODO comments, we are not supposed to have them.


Refers to: src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/DesignerActionPanel.cs:1299 in 870ea14. [](commit_id = 870ea14, deletion_comment = False)

// I don't think so, because the malicious control would still be on the frame.
new NamedPermissionSet("FullTrust").Assert();

foreach (AdornerWindow adornerWindow in AdornerWindow.s_adornerWindowList)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is related to CAS, can go away

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which part can go away?

Copy link
Contributor

@zsd4yr zsd4yr Apr 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕐

Copy link
Contributor

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@JuditRose JuditRose merged commit 28fc930 into master Apr 5, 2019
@zsd4yr zsd4yr deleted the WFI-585-port-system-windows-forms-design-components branch April 5, 2019 22:39
@ghost ghost locked as resolved and limited conversation to collaborators Feb 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants