Пример #1
0
        void ReceiveParam(object sender, object msg)
        {
            Type t = msg.GetType();

            if (t.IsEnum)
            {
                eFrom e = (eFrom)msg;
                switch (e)
                {
                case eFrom.Show_Main:
                    ShowMainFrm(sender as user_Param);
                    break;
                }
            }
        }
Пример #2
0
        void ReceiveParam(object sender, object msg)
        {
            Type t = msg.GetType();

            if (t.IsEnum)
            {
                eFrom e = (eFrom)msg;
                switch (e)
                {
                case eFrom.Show_headchange:
                    Showheadchange(sender as user_Param);
                    break;

                case eFrom.Show_bookchange:
                    Showbookchange(sender as book_Param);
                    break;
                }
            }
        }