登录
首页 » C# » 用Unity实现层与层之间的接口调用(附源码)

用Unity实现层与层之间的接口调用(附源码)

于 2013-07-26 发布
0 123
下载积分: 1 下载次数: 0

代码说明:

用Unity的依赖注入容器(Dependency Injection, DI)实现

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论


0 个回复

  • 企业短信猫 群发短信示例源码(含dllforvc.dll)
    企业短信猫 群发短信示例源码(含dllforvc.dll)
    2018-04-06下载
    积分:1
  • unit3d 塔防游戏源码
    unit3d 塔防游戏源码
    2013-09-12下载
    积分:1
  • 迷你QQ完整源码下载,可以登陆。和 收发信息(亲测通过)
    可以聊天和登陆,但是,不知道为什么在聊天中再发起第二个时会出错,
    2014-06-23下载
    积分:1
  • MumiMusic 音乐播放器(漂亮的UI界面)
    MumiMusic 音乐播放器(漂亮的UI界面)
    2019-07-03下载
    积分:1
  • C难点介绍
    【实例简介】C语言难点介绍
    2021-12-21 00:31:22下载
    积分:1
  • c# settings的用法
    切记范围 选择  
    2014-02-11下载
    积分:1
  • wpf 登陆页面示例源码 用的sqlserver数据库
    wpf 登陆页面示例源码 用的sqlserver数据库
    2014-04-18下载
    积分:1
  • c# winform 自定义控件类LayeredSkin.dll
    自定义开关按钮,滚动相册,进度条,窗体控件/******************************************************************** * * * * 使本项目源码或本项目生成的DLL前请仔细阅读以下协议内容,如果你同意以下协议才能使用本项目所有的功能, * * 否则如果你违反了以下协议,有可能陷入法律纠纷和赔偿,作者保留追究法律责任的权利。 * * * * 1、你可以在开发的软件产品中使用和修改本项目的源码和DLL,但是请保留所有相关的版权信息。 * * 2、不能将本项目源码与作者的其他项目整合作为一个单独的软件售卖给他人使用。 * * 3、不能传播本项目的源码和DLL,包括上传到网上、拷贝给他人等方式。 * * 4、以上协议暂时定制,由于还不完善,作者保留以后修改协议的权利。 * * * * Copyright (C) 2013-2014 LayeredSkin Corporation All rights reserved. * * 作者: 小红帽  QQ:761716178 * * 请保留以上版权信息,否则作者将保留追究法律责任。 * * * * 创建时间:2014-04-13 * * 说明:QQ.cs * *********************************************************************/using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using LayeredSkin.Forms;namespace test{    public partial class QQ : LayeredForm    {        public QQ()        {            InitializeComponent();        }        private void layeredButton1_Click(object sender, EventArgs e)        {            this.WindowState = FormWindowState.Minimized;        }        private void QQ_Load(object sender, EventArgs e)        {            this.Animation.Effect = new LayeredSkin.Animations.GradualCurtainEffect() { ChangeHeight = 25 };            yezi = new Bitmap(90, 80);//先把叶子画在稍微大一点的画布上,这样叶子旋转的时候才不会被裁掉一部分            using (Graphics g = Graphics.FromImage(yezi))            {                g.DrawImage(Image.FromFile("Images\yezi3.png"), 10, 0);            }            timer1.Start();        }        private void layeredButton2_Click(object sender, EventArgs e)        {            this.Animation.Effect = new LayeredSkin.Animations.GradualCurtainEffect();            this.Animation.Asc = true;            this.Close();        }        private void FormMoveMouseDown(object sender, MouseEventArgs e)        {            LayeredSkin.NativeMethods.MouseToMoveControl(this.Handle);        }        Image Cloud = Image.FromFile("Images\cloud.png");        float cloudX = 0;        Image yezi;        float angle = 10;        bool RotationDirection = true;//是否为顺时针        protected override void OnLayeredPaint(PaintEventArgs e)        {            Graphics g = e.Graphics;            if (cloudX > this.Width - Cloud.Width)            {//云的飘动                cloudX = 0;            }            else            {                cloudX = 0.5f;            }            g.DrawImage(Cloud, cloudX, 0);//把云绘制上去            if (angle > 10)            {//控制旋转方向                RotationDirection = false;            }            if (angle < -10)            {                RotationDirection = true;            }            if (RotationDirection)            {                angle = 1;            }            else            {                angle -= 1;            }            using (Image temp = LayeredSkin.ImageEffects.RotateImage(yezi, angle, new Point(25, 3)))            {                g.DrawImage(temp, 140, 70);//绘制叶子            }            base.OnLayeredPaint(e);        }        private void timer1_Tick(object sender, EventArgs e)        {            LayeredPaint();            GC.Collect();        }        public bool isShow = false;        bool isFirst = true;        private void layeredButton3_Click(object sender, EventArgs e)        {            isShow = false;            if (isFirst)            {                this.Animation.Effect = new LayeredSkin.Animations.ThreeDTurn();                this.Animation.AnimationEnd = Animation_AnimationEnd;            }            isFirst = false;            this.Animation.Asc = false;            this.Animation.Start();        }        //QQConfig config;        void Animation_AnimationEnd(object sender, LayeredSkin.Animations.AnimationEventArgs e)        {            if (!isShow)            {                this.Hide();                QQConfig config = new QQConfig(this);                config.Location = this.Location;                config.Show();            }        }    }}
    2020-12-11下载
    积分:1
  • 于MadgwickAHRS算法的3D呈像实现
    基于MadgwickAHRS的九轴数据转换为四元数算法的3D呈像图
    2020-12-11下载
    积分:1
  • C# 文件上传和下载(上传文件到服务端)
    实现文件上传和下载,包含服务器和客户端 对于学习TCP的同学有帮助
    2021-03-21 22:09:16下载
    积分:1
  • 696518资源总数
  • 104552会员总数
  • 3今日下载