Exemplo n.º 1
0
 void ListBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (!UIUtils.IsLeftDoubleClick <ListBoxItem>(listBox, e))
     {
         return;
     }
     JumpToSelectedItem();
     e.Handled = true;
 }
Exemplo n.º 2
0
 private void listView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (!UIUtils.IsLeftDoubleClick <ListViewItem>(listView, e))
     {
         return;
     }
     if (listView.SelectedItems.Count > 0)
     {
         this.DialogResult = true;
         Close();
     }
 }
Exemplo n.º 3
0
 private void listView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (!UIUtils.IsLeftDoubleClick <ListViewItem>(listView, e))
     {
         return;
     }
     if (listView.SelectedItem != null)
     {
         this.DialogResult = true;
         e.Handled         = true;
         return;
     }
 }
Exemplo n.º 4
0
        private void listView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (!UIUtils.IsLeftDoubleClick <ListViewItem>(listView, e))
            {
                return;
            }
            var tabs = GetSelectedItems();

            if (tabs.Length > 0)
            {
                ActivateWindow(tabs[0]);
                this.DialogResult = true;
                e.Handled         = true;
                return;
            }
        }