/// <summary> /// Звонок сотруднику /// </summary> /// <param name="sender"> </param> /// <param name="e"> </param> private void Calling(object sender, EventArgs e) { if (!dialPhoneList.Contains(((System.Windows.Forms.Control)sender).Tag)) { dialPhoneList.Add(((System.Windows.Forms.Control)sender).Tag); } else { Close(); return; } string url = Environment.DialURL; //url = "http://beta.testcom.com/webdialer/dialer.aspx?dialnumber="; udb = new UrlBrowseDialog(url + ((System.Windows.Forms.Control)sender).Tag, "Связь") { Width = 500, Height = 150, MaximizeBox = false, MinimizeBox = false, Tag = ((System.Windows.Forms.Control)sender).Tag }; udb.Closed += udb_Closed; udb.Show(); Close(); }
protected override void OnLinkClicked(LinkLabelLinkClickedEventArgs e) { base.OnLinkClicked(e); if (string.IsNullOrEmpty(Url)) { return; } var udb = new UrlBrowseDialog(Url, Caption) { StartPosition = FormStartPosition.CenterScreen, Width = 612, Height = 430, MaximizeBox = false, MinimizeBox = false, Owner = _topLevelForm }; udb.Show(_topLevelForm); }