Esempio n. 1
0
        private void DoubleClickGroupExecuted()
        {
            if (!Groups.Any())
                return;

            if (string.IsNullOrEmpty(SelectedGroup.Name))
            {
                // TODO : set error
                return;
            }

            var contexts = new ContextQuery {GroupName = SelectedGroup.Name}.Get();
            ResultData.Instance.Contexts = Mapper.Map<List<ContextModel>>(contexts);

            var main = (MainWindow) Application.Current.MainWindow;
            main.HiddenTabFocusAllowed = true;
            main.GotToTab(main.ContextTabName);
        }
Esempio n. 2
0
        private void DoubleClickRelationExecuted()
        {
            if (!Relations.Any())
                return;

            if (string.IsNullOrEmpty(SelectedRelation.Name))
            {
                // TODO : set error
                return;
            }

            var contexts = new ContextQuery {RelationName = SelectedRelation.Name}.Get();
            ResultData.Instance.Contexts = Mapper.Map<List<ContextModel>>(contexts);

            ((MainWindow)Application.Current.MainWindow).HiddenTabFocusAllowed = true;
            ((MainWindow)Application.Current.MainWindow).MainTabControl.SelectedIndex = 5;
        }