Skip to content
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • moderated spammer (Amelia Johnson)

    Spam and Abuse Watch com tools help question
    2
    0 Votes
    2 Posts
    0 Views
    R
    Spammer terminated. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • 0 Votes
    2 Posts
    0 Views
    R
    Spammer terminated. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • moderated spammer (Member 16385644)

    Spam and Abuse Watch com tools help question
    2
    0 Votes
    2 Posts
    0 Views
    R
    Spammer terminated. (Or should that be: spermer taminated? :-D ) "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • moderated spammer (Member 16385658)

    Spam and Abuse Watch com tools help question
    2
    0 Votes
    2 Posts
    0 Views
    R
    Spammer terminated. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • MS Word bugs

    The Lounge announcement help question
    8
    0 Votes
    8 Posts
    6 Views
    J
    trønderen wrote: deciding to move paragraphs, sentences and words around (that happens quite often) Just noting that I never do that. I do move large blocks of text. But I do not drag. I never move a single word.
  • moderated spammer (Marichar Rim)

    Spam and Abuse Watch com tools help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    1 Posts
    3 Views
    No one has replied
  • Bios

    Hardware & Devices performance help question
    7
    0 Votes
    7 Posts
    6 Views
    L
    Another excellent response. Do you think it is worth consolidating all this into an artice?
  • Terminal I/O UI

    The Lounge help design sales tutorial
    16
    0 Votes
    16 Posts
    0 Views
    T
    When replacing an optimized front end treasury system, I used but two hacks: 1. understand what information they need most and why and put it where they find it and 2. learn all of their keyboard shortcuts and replicate them in the new system. I can't overstate the importance of the ability of the operator to quickly enter all the data with just tab, alphanumerical characters and cursor keys.
  • I'm not sure whether to laugh or cry.

    The Lounge design help com graphics iot
    7
    0 Votes
    7 Posts
    0 Views
    S
    honey the codewitch wrote: the last bug I fixed put my output clear back where I started Been there. Done that. :)
  • 0 Votes
    6 Posts
    19 Views
    J
    Presumably you have a well designed understanding of what the additional functionality is in general. There are a number of design patterns that might be useful in structuring the code. - Chain of responsibility - Fly weight - Decorator - Composite - Template As suggested other response you use reflection to load classes dynamically. Those will need either an interface or base class for your code to interact with it. You will need to at least consider dependencies (other dlls required by the dll that is loaded) in that they must be located somewhere. Either load those also dynamically or insure that the application can find them. AtaChris wrote: with reduced functionality That is a design and business consideration which cannot be addressed generically. For example perhaps you want to switch out your database driver. But the application cannot operate without any database. Same thing with supporting multiple card card processor interfaces. If you expect two but only find one then that is ok. But if you find none then the application probably cannot continue. There are ways around failure cases but they add significant complexity and even business risk.
  • Interface with a default implementation

    C# debugging help question
    13
    0 Votes
    13 Posts
    40 Views
    C
    It may be worth pointing out that as the code stands Port interface has no access to FooData1 or FooData2. public class Foo : Foo.Port { private Foo() { } public int FooData1 { get; set; } public int FooData2 { get; set; } public interface Port { static Port Default = new Foo(); protected int FooData1 { get; } protected int FooData2 { get; } static (int, int) Action() { return (Default.FooData1, Default.FooData2); } } } Now we have access to FooData1 and FooData2. Foo is private and the only instance of Foo or Port is Foo.Port.Default and we can access it as such. var bar = Foo.Port.Default; var foobar = (Foo)bar; foobar.FooData1 = 10; foobar.FooData2 = 20; Console.WriteLine(Foo.Port.Action()); If we want more than the single instance of Foo we need a Clone() method in Foo which can be easily done like this. public object Clone() { var (X, Y) = Foo.Port.Action(); return new Foo() { FooData1 = X, FooData2 = Y }; }
  • What's the syntax error?

    Database sql-server database help question
    6
    0 Votes
    6 Posts
    6 Views
    Richard Andrew x64R
    I'll give this a try when I'm back in my office. The difficult we do right away... ...the impossible takes slightly longer.
  • 0 Votes
    2 Posts
    1 Views
    J
    Quote: They say 80% of goth is lint rolling.* :laugh: :laugh: :laugh:
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • App WPF

    WPF csharp question visual-studio wpf help
    2
    0 Votes
    2 Posts
    15 Views
    R
    Nelson1965 wrote: I would like the windows I open not to appear in the Task Manager The dream of malware authors everywhere! No, you can't hide your application from the task manager. At least not without writing and installing a "rootkit", which will get your application banned with extreme prejudice. Nelson1965 wrote: when I log out to turn off the computer it tells me that there are open windows You don't need to hide your application from the task manager to avoid that. Any normal application will shut down when the user logs out. If you need to do something special when that happens, subscribe to the Application.SessionEnding event[^]. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • I need a new life...

    The Lounge help
    38
    0 Votes
    38 Posts
    3 Views
    M
    Retired from Singapore and moved to Cairns, we knew no one except our son (who we do NOT socialise with). We got a couple of dogs and made a few friends with people walking the beach, joined a bridge club and picked up a few more friends. We have a thing called "Men's Sheds" here but I have not been involved in them as I have more people I call friends (4-5) than I can deal with. I had my wife as my only friend for the previous 20 years. Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
  • 0 Votes
    11 Posts
    9 Views
    R
    raddevus wrote: If you don't have the deconstructor in your class and you try the destructuring you will get an error Unless you have a deconstructor extension method, which can be handy for third-party classes that don't provide them: // In your "SimpleShapes.dll" assembly: public class Rectangle(float width, float height) { public readonly float Width = width, Height = height; } // In my application code: public static class Shapes { public static void Deconstruct (this Rectangle rectangle, out float width, out float height) => (width, height) = (rectangle.Width, rectangle.Height); } "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • moderated spammer (Member 16381179)

    Spam and Abuse Watch question com tools help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied