Example #1
0
        public Form_login(IRapidPassiveEngine rapidPassiveEngine, Form_main formMain)
        {
            this.engine = rapidPassiveEngine;
            this._main  = formMain;

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

            InitializeComponent();
        }
 public Form_login(IRapidPassiveEngine rapidPassiveEngine,Form_main formMain)
 {
     this.engine = rapidPassiveEngine;
     this._main = formMain;
     this.settings = SystemSettings.Singleton;
     InitializeComponent();
     //initTxt();
 }
Example #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();
 }
Example #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();
        }
Example #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);
            }
        }
Example #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();
 }