Exemplo n.º 1
0
        public Form_login(IRapidPassiveEngine rapidPassiveEngine, Form_main formMain)
        {
            this.engine = rapidPassiveEngine;
            this._main  = formMain;

            InitializeComponent();
        }
Exemplo n.º 2
0
        public Form_login(IRapidPassiveEngine rapidPassiveEngine,Form_main formMain)
        {
            this.engine = rapidPassiveEngine;
            this._main = formMain;

            InitializeComponent();
        }
Exemplo n.º 3
0
 public Form_login(IRapidPassiveEngine rapidPassiveEngine,Form_main formMain)
 {
     this.engine = rapidPassiveEngine;
     this._main = formMain;
     this.settings = SystemSettings.Singleton;
     InitializeComponent();
     //initTxt();
 }
Exemplo n.º 4
0
 public Form_Chat(IRapidPassiveEngine rapidPassiveEngine, ChatListSubItem item, ChatListSubItem userItem, Form_main main)
 {
     main.Receive += new Form_main.ReceiveEventHandler(ChatHandleReceive);//注册收到信息时的事件处理程序ChatHandleReceive
     this.userItem = userItem;
     this.item = item;
     this.rapidPassiveEngine = rapidPassiveEngine;
     InitializeComponent();
 }
Exemplo n.º 5
0
        public Form_Chat(IRapidPassiveEngine rapidPassiveEngine, ChatListSubItem contactInfo, ChatListSubItem myInfo, Form_main main)
        {
            //注册收到信息时的事件处理程序ChatHandleReceive
            main.Receive += new Form_main.ReceiveEventHandler(ChatHandleReceive);

            //传入变量
            this.contactInfo = contactInfo;
            this.myInfo = myInfo;
            this.rapidPassiveEngine = rapidPassiveEngine;

            InitializeComponent();
        }
Exemplo n.º 6
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            IRapidPassiveEngine rapidPassiveEngine = ESPlus.Rapid.RapidEngineFactory.CreatePassiveEngine();
            Form_main mainForm = new Form_main();
            Form_login loginForm = new Form_login(rapidPassiveEngine, mainForm); //在LoginForm中初始化客户端引擎RapidPassiveEngine
            if (loginForm.ShowDialog() == DialogResult.OK)
            {
                mainForm.InitMain(rapidPassiveEngine);
                Application.Run(mainForm);
            }
        }
Exemplo n.º 7
0
 public Form_Chat(IRapidPassiveEngine rapidPassiveEngine, ChatListSubItem item, ChatListSubItem userItem, Form_main main)
 {
     main.Receive           += new Form_main.ReceiveEventHandler(ChatHandleReceive);//注册收到信息时的事件处理程序ChatHandleReceive
     this.userItem           = userItem;
     this.item               = item;
     this.rapidPassiveEngine = rapidPassiveEngine;
     InitializeComponent();
 }