private void ListView_HyperlinkClicked(object sender, HyperlinkClickedEventArgs e)
 {
     //Just to be complete, when a hyperlink is clicked, ObjectListView triggers a HyperlinkClickd event
     //(no prizes for guessing that). If you listen for and handle this event, set Handled to true so that
     //the default processing is not done. By default, ObjectListView will try to open the URL,
     //using System.Diagnostics.Process.Start()
 }
Example #2
0
        private void lstvHoaDon_HyperlinkClicked(object sender, HyperlinkClickedEventArgs e)
        {
            e.Handled             = true;
            tabMain.SelectedIndex = 0;
            NhanVien target = ((HoaDon)e.Model).NhanVien;

            lstvNhanVien.Select();
            lstvNhanVien.SelectObject(target);
        }
        private void mFieldsGrid_HyperlinkClicked(object sender, HyperlinkClickedEventArgs e)
        {
            e.Handled = true;             // Disable default processing

            // Defer until double click time to ensure that if double clicking, URL isn't opened.
            mDoubleClickTimer.Interval = SystemInformation.DoubleClickTime;
            mClickedUrl = e.Url;
            mDoubleClickTimer.Start();
        }
        public void OpenHyperlink(object sender, HyperlinkClickedEventArgs e)
        {
            ProcessStartInfo processInfo = new ProcessStartInfo
            {
                FileName        = e.Href,
                UseShellExecute = true
            };

            Process.Start(processInfo);
        }
Example #5
0
        private void mainTreeView_HyperlinkClicked(object sender, HyperlinkClickedEventArgs e)
        {
            var di = ((DuplicateItem)e.Item.RowObject);

            if (di.IsRoot)
            {
                return;
            }
            e.Handled = true;
            OnPathSelectionEvent(di);
        }
Example #6
0
        private void AssociatedCardsObjectListView_HyperlinkClicked(object sender, HyperlinkClickedEventArgs e)
        {
            var cardInfo  = (CardInfo)e.Item.RowObject;
            var cardInfos = new List <CardInfo> {
                cardInfo
            };

            // カード選択イベントを発生させる
            ((Form1)MdiParent)._selectCardInfos?.Invoke(cardInfos);

            e.Handled = true;
        }
        private void objLVDashboard_HyperlinkClicked(object sender, HyperlinkClickedEventArgs e)
        {
            if (e.Model == null)
            {
                return;
            }
            DashboardReportItem item = (DashboardReportItem)e.Model;

            if (item.GetReportItemDecoration().IsHyperLink)
            {
                ActionableDashboardReportItem(item);
            }
        }
Example #8
0
        private void HyperlinkClicked(object sender, HyperlinkClickedEventArgs e)
        {
            //e.Handled = true;
            if (e.URL.Contains("http://"))
            {
                ctlWeb aba = (ctlWeb)MFrmMain.radDock2.DocumentManager.ActiveDocument.ActiveControl;
                aba.Navigate(e.URL);

                MFrmMain.radDock2.ActiveWindow =
                    MFrmMain.radDock2.DocumentManager.DocumentArray[0];
                e.Handled = true;
            }
            else if (e.URL.StartsWith("CREATED: "))
            {
                Change_Date(e.URL.Replace("CREATED: ", ""));
                FilterDiaries(ParentControl.DiaryCurrentSymbols, ParentControl.DiaryStart,
                              ParentControl.DiaryEnd);
                e.Handled = true;
            }
            else if (e.URL.StartsWith("EDIT: "))
            {
                Create_Edit(e.URL.Replace("EDIT: ", ""));
                FilterDiaries(ParentControl.DiaryCurrentSymbols, ParentControl.DiaryStart,
                              ParentControl.DiaryEnd);
                e.Handled = true;
            }
            else if (e.URL.StartsWith("DELETE: "))
            {
                try
                {
                    if (RadMessageBox.Show("Delete the post " +
                                           e.URL.Replace("DELETE: " + Directory.GetCurrentDirectory() + "\\Base\\TRADEDIARY\\", "") + "?", "DELETE POST", MessageBoxButtons.OKCancel) == DialogResult.OK)
                    {
                        FileInfo file_delete = new FileInfo(e.URL.Replace("DELETE: ", ""));
                        file_delete.Delete();
                        FilterDiaries(ParentControl.DiaryCurrentSymbols, ParentControl.DiaryStart,
                                      ParentControl.DiaryEnd);
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }

            radRichTextBox1.Focusable = false;
            e.Handled = true;
            this.radRichTextBox1.HyperlinkNavigationMode = Telerik.WinControls.RichTextBox.HyperlinkNavigationMode.Click;
            //this.radRichTextBox1.HyperlinkClicked += new System.EventHandler<Telerik.WinControls.RichTextBox.Model.HyperlinkClickedEventArgs>(this.HyperlinkClicked);
        }
Example #9
0
        private void olvAllCars_HyperlinkClicked(object sender, HyperlinkClickedEventArgs e)
        {
            Car c = (Car)e.Model;

            if (e.Column == colModel)
            {
                rbrcit.DownloadCarModel(c);
            }
            else if (e.Column == colPhysics)
            {
                rbrcit.DownloadCarPhysics(c);
            }
            e.Handled = true;
        }
        private void ListView_HyperlinkClicked(object sender, HyperlinkClickedEventArgs e)
        {
            JAttachment item = (JAttachment)e.Model;

            if (item.Path != null && item.Path.StartsWith(Dm.STORAGE_PREFIX))
            {
                string         path = Dm.Instance.GetRealPath(item.Path, SourceObject);
                FileSystemInfo x    = GetFileSystemInfo(path);
                if (x != null)
                {
                    e.Url = x.FullName;
                }
            }
        }
Example #11
0
        private void objectListView_HyperlinkClicked(object sender, HyperlinkClickedEventArgs e)
        {
            var movie = e.Model as Movie;

            if (movie != null)
            {
                if (e.Column == this.olvColumnLink1)
                {
                    e.Url = movie.Link1.Url;
                }
                else if (e.Column == this.olvColumnLink2)
                {
                    e.Url = movie.Link2.Url;
                }
            }
        }
 private void RadRichTextBox_OnHyperlinkClicked(object?sender, HyperlinkClickedEventArgs e)
 {
     if (e.URL.StartsWith("kgb://"))
     {
         // parse book, chapter and verse from link
         Regex urlRegex = new Regex("book=(?<book>.*)&chap=(?<chap>\\d*)&verse=(?<verse>\\d*)");
         Match m        = urlRegex.Match(e.URL);
         ((IBibleRenderer)RendererPlaceHolder.Content).NavigateToScripture(
             new BibleReference()
         {
             Book    = m.Groups["book"].Value,
             Chapter = m.Groups["chap"].Value,
             Verse   = uint.Parse(m.Groups["verse"].Value)
         });
         e.Handled = true;
     }
 }
Example #13
0
        private void objectListView_HyperlinkClicked(object sender, HyperlinkClickedEventArgs e)
        {
            var row = e.Model as CombatantWrapper;

            switch (e.Column.Text)
            {
            case "+":
                this.Encounter.AddCombatant(row.Combatant);
                break;

            case "-":
                this.Encounter.RemoveCombatant(row.Combatant);
                break;
            }

            // finally, don't attempt to browse to the URL
            e.Handled = true;
        }
Example #14
0
        private void OnMessageParameterLinkClick(object sender, HyperlinkClickedEventArgs e)
        {
            var hyperlink = e.OriginalSource as Hyperlink;

            if (hyperlink == null)
            {
                return;
            }

            var element = hyperlink.DataContext as DiplomacyMessageElement;

            if (element == null)
            {
                return;
            }

            var parameter       = element.SelectedParameter;
            var contentTemplate = parameter != null?TryFindResource(parameter.GetType()) as DataTemplate : null;

            if (element.EditParameterCommand.CanExecute(contentTemplate))
            {
                element.EditParameterCommand.Execute(contentTemplate);
            }
        }
Example #15
0
 private void OnHyperlinkClick(object sender, HyperlinkClickedEventArgs e)
 {
     e.Url = UrlGetter(e.Column, e.Model);
 }
 private void tdNotification_HyperlinkClicked(object sender, HyperlinkClickedEventArgs e)
 {
     Process.Start(e.Href);
 }
Example #17
0
 private void _sampleTaskDialog_HyperlinkClicked(object sender, HyperlinkClickedEventArgs e)
 {
     Process.Start(e.Href);
 }
Example #18
0
 protected override void OnHyperlinkClicked(object sender, HyperlinkClickedEventArgs eventArgs)
 {
 }
 private void TaskDialog_HyperLinkClicked(object sender, HyperlinkClickedEventArgs e)
 {
     System.Diagnostics.Process.Start(e.Href);
 }
Example #20
0
 private void TaskDialogAbout_HyperLinkClicked(object sender, HyperlinkClickedEventArgs e)
 {
     System.Diagnostics.Process.Start("https://heiswayi.nrird.com");
 }
 protected void OnHyperlinkClicked(HyperlinkClickedEventArgs e) => HyperlinkClicked?.Invoke(this, e);
Example #22
0
 private void TaskDialog_HyperLinkClicked(object sender, HyperlinkClickedEventArgs e)
 {
     System.Diagnostics.Process.Start(e.Href);
 }
Example #23
0
 protected override void OnHyperlinkClicked(object sender, HyperlinkClickedEventArgs eventArgs)
 {
 }