public SoloVideoForm(string currentID, string _friendID, string friendName, bool waitingAnswer, ChatClient.Main _mainWnd) { InitializeComponent(); this.m_mainWnd = _mainWnd; this.currentUserID = currentID; this.friendID = _friendID; this.Text = string.Format("正在和{0}视频会话", friendName); if (!waitingAnswer) //同意视频,开始连接 { this.OnAgree(); } }
public ManVideoFormcs(string currentID, string _friendID, string friendName, bool waitingAnswer, ChatClient.Main _mainWnd) { InitializeComponent(); Point maximizedLocation = new Point((SystemInformation.VirtualScreen.Width - this.MaximumSize.Width) / 2, (SystemInformation.VirtualScreen.Height - this.MaximumSize.Height) / 2); this.MaximizedBounds = new Rectangle(maximizedLocation, this.MaximumSize); this.m_mainWnd = _mainWnd; this.currentUserID = currentID; this.friendID = _friendID; this.Text = string.Format("正在和{0}视频会话", friendName); if (!waitingAnswer) //同意视频,开始连接 { this.OnAgree(); } }