예제 #1
0
        private void listView1_DoubleClick(object sender, EventArgs e)
        {
            m_lastDoubleClick = DateTime.Now;
            var ao = SelectedAppObject;

            if (ao == null)
            {
                return;
            }
            switch (DoubleClickAction)
            {
            case DoubleClickActionType.DefaultAction:
                ao.DefaultAction();
                break;

            case DoubleClickActionType.OpenInTree:
            {
                var dash = GetParentDashboard();
                if (dash != null && dash.WinId != null && MainWindow.Instance.HasContent(dash.WinId))
                {
                    ao.OpenTheBestDashboard();
                    return;
                }
                else if (ao.GetTreePath() != null)
                {
                    HTree.CallSelectNode(ao.GetTreePath(), SelectNodeFlags.FocusTree | SelectNodeFlags.ScrollInView);
                }
            }
            break;
            }
        }
예제 #2
0
        void labPathRoot_Click(object sender, EventArgs e)
        {
            var lab = (LinkLabel)sender;

            HTree.CallSelectNode(lab.Tag.ToString(), SelectNodeFlags.FocusTree | SelectNodeFlags.ScrollInView);
        }