Beispiel #1
0
        public VideoForm(string currentID, string _friendID, string friendName, bool waitingAnswer, ChatClient.NewChatRoom _newChatRoom)
        {
            InitializeComponent();

            this._newChatRoom = _newChatRoom;

            this.currentUserID = currentID;
            this.friendID      = _friendID;
            this.Text          = string.Format("正在和{0}视频会话", friendName);

            if (!waitingAnswer) //同意视频,开始连接
            {
                this.OnAgree();
            }
        }
        public WomanVideoFormcs(string currentID, string _friendID, string friendName, bool waitingAnswer, ChatClient.NewChatRoom _newChatRoom)
        {
            InitializeComponent();
            Rectangle screen            = Screen.PrimaryScreen.Bounds;
            Point     maximizedLocation = new Point((screen.Width - 336) / 2, (screen.Height - 305) / 2);

            this.MaximizedBounds = new Rectangle(maximizedLocation, this.MaximumSize);

            this._newChatRoom = _newChatRoom;

            this.currentUserID = currentID;
            this.friendID      = _friendID;
            this.Text          = string.Format("正在和{0}视频会话", friendName);

            if (!waitingAnswer) //同意视频,开始连接
            {
                this.OnAgree();
            }
        }