Example #1
0
        public ConversationView(uint id, bool styleChoice)
        {
            // Create the controller
            controller = new ConversationController(id);

            // Handlers for external events
            controller.NewSay              += new ConversationController.ExternalEventHandler(OnNewSay);
            controller.ChangeUserState     += new ConversationController.ExternalEventHandler(OnChangeUserState);
            controller.ReceivedPartnerInfo += new ConversationController.ExternalEventHandler(OnReceivedParnterInfo);

            // Register the controller handlers to the service
            controller.RegisterHandlers();

            // Initialize Component
            InitializeComponent();
            _styleChoice = styleChoice;
            _id          = id;

            // Set the parent and display the window
            SetMdiParent();
            ShowForm();

            // Handlers for internal events
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FriendListView_FormClosing);
        }
Example #2
0
        public ConversationView(uint id, bool styleChoice)
        {
            // Create the controller
            controller = new ConversationController(id);

            // Handlers for external events
            controller.NewSay += new ConversationController.ExternalEventHandler(OnNewSay);
            controller.ChangeUserState += new ConversationController.ExternalEventHandler(OnChangeUserState);
            controller.ReceivedPartnerInfo += new ConversationController.ExternalEventHandler(OnReceivedParnterInfo);

            // Register the controller handlers to the service
            controller.RegisterHandlers();

            // Initialize Component
            InitializeComponent();
            _styleChoice = styleChoice;
            _id = id;

            // Set the parent and display the window
            SetMdiParent();
            ShowForm();

            // Handlers for internal events
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FriendListView_FormClosing);
        }