Using a View from another Project/Application

47 views
Skip to first unread message

Steve Burrows

unread,
May 1, 2025, 12:38:08 PMMay 1
to Migrated By Firefly
I have written a generic View that works as desired within its Project.
Trying to use it from another Project is stumping me. 

Working within its application:
            View = () => new Views.PleaseWait("Testing Please Wait...",GetProgress);

Have tried to make an Interface for it like normal Classes, but it doesnt have any known methods (ChapGPT thought it has some, but that didnt help).
Create<> doesnt like it at all.

Is there a process or syntax to use this View from another Project, or am I have to give back my DRY certificate and copy it into 40 other projects ?

I know there is something in ENV that does similar, but would rather have all our Application features and GUI standards available.

Noam Honig

unread,
May 1, 2025, 2:33:22 PMMay 1
to Steve Burrows, Migrated By Firefly
Hi Steve,

Several options - my favorite would be to place this new PleaseWait in the Base project.

Another option is to use something similar to interface - but with an AbstractClass - it's a bit more complex not sure its worth your effort.

One more thing - I love that you're standardizing the Please Wait - there is a class in ENV called ShowProgressInNewThread that you may like - that does something similar - but also does it on a new thread, so there is not performance cost at all



Noam Honig  
Founder & CEO


--
You received this message because you are subscribed to the Google Groups "Migrated By Firefly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to migrated-by-fir...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/migrated-by-firefly/84d5bb4f-2d36-4789-bf01-7308eaba8949n%40googlegroups.com.

Steve Burrows

unread,
May 2, 2025, 4:41:57 AMMay 2
to Migrated By Firefly
Thanks,
Moving both to Base had protection issues:
My normal View had a Func<String> parameter that had protection issues, but I can work around that by using the same technique as ShowProgressInNewThread.Progress()
ShowProgressInNewThread copied to base had protection issues with the bp option (Nice but I wont lose sleep over losing it)

I can live without both, so now I have BOTH as identically looking Standard options using whichever depending on how much effort I want to put into Progress, or how much speed might be an issue.

Noam Honig

unread,
May 2, 2025, 4:45:42 AMMay 2
to Steve Burrows, Migrated By Firefly
Not sure what you mean by `protection issues`
Noam Honig  
Founder & CEO

Steve Burrows

unread,
May 2, 2025, 10:17:50 AMMay 2
to Migrated By Firefly
e..g 
When I copy ShowProgressInNewThread into our base (and rename it) I get:
Error (active) CS0122 'BusinessProcessBase.Title' is inaccessible due to its protection level
Error (active) CS0122 'BusinessProcessBase.LeaveRow' is inaccessible due to its protection level

Noam Honig

unread,
May 2, 2025, 11:40:59 AMMay 2
to Steve Burrows, Migrated By Firefly
I see what you mean - so you can easily change Title and LeaveRow to be public - that'll solve your isssue
Noam Honig  
Founder & CEO

Reply all
Reply to author
Forward
0 new messages