Click here to Skip to main content
15,888,069 members
Home / Discussions / C#
   

C#

 
AnswerRe: (C#) How to make this kind of design and functions Pin
Richard MacCutchan7-Feb-17 21:44
mveRichard MacCutchan7-Feb-17 21:44 
QuestionHow do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
Member 102589347-Feb-17 3:10
Member 102589347-Feb-17 3:10 
QuestionRe: How do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
Richard MacCutchan7-Feb-17 3:15
mveRichard MacCutchan7-Feb-17 3:15 
AnswerRe: How do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
Eddy Vluggen7-Feb-17 3:32
professionalEddy Vluggen7-Feb-17 3:32 
AnswerRe: How do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
Jochen Arndt7-Feb-17 3:56
professionalJochen Arndt7-Feb-17 3:56 
AnswerRe: How do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
Nathan Minier7-Feb-17 5:54
professionalNathan Minier7-Feb-17 5:54 
AnswerRe: How do I synchronize multi user GUI controls automatically when changes happen into database from any of the user? Pin
CHill607-Feb-17 6:44
mveCHill607-Feb-17 6:44 
QuestionLoad Assembly At Run Time if Implements Interface Pin
Kevin Marois6-Feb-17 12:41
professionalKevin Marois6-Feb-17 12:41 
My Interface:
public interface IInstrumentService
{
    void Start();

    void Stop();

    void UpdateStatus(ServiceStatusModel status);
}
My class
public class TestClass1 : IInstrumentService
{
    public void Start()
    {
    }

    public void Stop()
    {
    }

    public void UpdateStatus(ServiceStatusModel status)
    {
    }
}
My method to load:
private void GetServicesToLoadServices()
{
    string[] files = Directory.GetFiles(_servicesLocation, "*.dll");
    foreach (string file in files)
    {
        Assembly assembly = Assembly.LoadFrom(file);
        foreach (Type type in assembly.GetTypes())     //< == Type is "TestClass1" 
        {
            bool isImplementing1 = type.IsAssignableFrom(typeof(IInstrumentService));       //< ==  ALWAYS FALSE
            bool isImplementing2 = typeof(IInstrumentService).IsAssignableFrom(type);       //< ==  ALWAYS FALSE
        }
    }
}

Anyone see what's wrong here?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Load Assembly At Run Time if Implements Interface Pin
Richard Andrew x646-Feb-17 12:55
professionalRichard Andrew x646-Feb-17 12:55 
GeneralRe: Load Assembly At Run Time if Implements Interface Pin
Kevin Marois6-Feb-17 13:00
professionalKevin Marois6-Feb-17 13:00 
AnswerRe: Load Assembly At Run Time if Implements Interface Pin
Garth J Lancaster6-Feb-17 14:05
professionalGarth J Lancaster6-Feb-17 14:05 
AnswerRe: Load Assembly At Run Time if Implements Interface Pin
Dave Kreskowiak6-Feb-17 14:17
mveDave Kreskowiak6-Feb-17 14:17 
GeneralRe: Load Assembly At Run Time if Implements Interface Pin
Kevin Marois6-Feb-17 14:59
professionalKevin Marois6-Feb-17 14:59 
AnswerRe: Load Assembly At Run Time if Implements Interface Pin
Jon McKee6-Feb-17 15:01
professionalJon McKee6-Feb-17 15:01 
AnswerRe: Load Assembly At Run Time if Implements Interface Pin
Pete O'Hanlon6-Feb-17 20:31
mvePete O'Hanlon6-Feb-17 20:31 
AnswerRe: Load Assembly At Run Time if Implements Interface Pin
Bernhard Hiller6-Feb-17 22:28
Bernhard Hiller6-Feb-17 22:28 
QuestionInsert selected combobox item into database table Pin
rattlerrFx6-Feb-17 8:35
rattlerrFx6-Feb-17 8:35 
AnswerRe: Insert selected combobox item into database table Pin
NotPolitcallyCorrect6-Feb-17 8:48
NotPolitcallyCorrect6-Feb-17 8:48 
GeneralRe: Insert selected combobox item into database table Pin
rattlerrFx6-Feb-17 8:57
rattlerrFx6-Feb-17 8:57 
AnswerRe: Insert selected combobox item into database table Pin
Richard Deeming6-Feb-17 10:12
mveRichard Deeming6-Feb-17 10:12 
GeneralRe: Insert selected combobox item into database table Pin
rattlerrFx6-Feb-17 16:58
rattlerrFx6-Feb-17 16:58 
GeneralRe: Insert selected combobox item into database table Pin
Richard Deeming7-Feb-17 3:00
mveRichard Deeming7-Feb-17 3:00 
QuestionI am getting error while saving outlook file in folder and when i am opening outlook file i am getting error Pin
Member 126658716-Feb-17 0:13
Member 126658716-Feb-17 0:13 
AnswerRe: I am getting error while saving outlook file in folder and when i am opening outlook file i am getting error Pin
Nathan Minier6-Feb-17 1:35
professionalNathan Minier6-Feb-17 1:35 
QuestionHow to complete the following C# program on Custom datatypes using interface? Pin
Member 129842755-Feb-17 16:08
Member 129842755-Feb-17 16:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.