C
C
Cerg1212014-05-06 06:12:00
Programming
Cerg121, 2014-05-06 06:12:00

Modular application in C#

Good afternoon.
What can you read about creating such applications? I would like to be able to easily expand the application by connecting individual modules. I could not find such material on the Internet.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
ad1Dima, 2014-05-06
@ad1Dima

Apparently you are looking for something like this

A
askeet, 2014-05-06
@askeet

But I remember doing this type of dance with a tambourine with a modular connection of dll on the 2nd framework.

public static bool isHaveSpread
        {
            get
            {
                if (!First_isHaveSpread) // в первый раз спрашиваю ?
                {
                    First_isHaveSpread = true;
                    if (!System.IO.File.Exists(System.Windows.Forms.Application.StartupPath + "\\" + NameDll))
                    {
                        Result_isHaveSpread = false;
                    }
                    else
                    {
                        Result_isHaveSpread = true;
                    }
                    
                }
                return Result_isHaveSpread;
            } 
        }
                
        static object _spread = null;
        private static object spread
        {
            get{
                if (isHaveSpread && !OneProxod)
                    try
                    {
                        OneProxod = true;
                        if (_spread != null) Close();
                        _spread = new spread.LibSpread.Spread(Address,Port, User, System.Reflection.Assembly.GetExecutingAssembly().FullName);                        
                    }catch(Exception e){
                        System.Diagnostics.Debug.WriteLine("UserSpread.spread: " + e.Message);
                        //MVB.ImitarorMVB.IMITATOR_MVB = false;
                    }
                    //if(_spread!=null) 
                          
                return _spread;
            }       
        }

               
        public static void Send<T>(T ob)
        {
            if (spread != null) 
                ((spread.LibSpread.Spread)_spread).Send(ob);
        }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question