Ejemplo n.º 1
0
        private void ViewChange(object sender, ItemClickEventArgs e)
        {
            var currentView = GetStartView() as Katrin.Win.Common.Core.View;

            if (_isShowChart)
            {
                currentView.Lock();
            }
            _isShowChart = !_isShowChart;
            SetButtonDown();
            Katrin.Win.Common.Core.View actviewView = GetStartView() as Katrin.Win.Common.Core.View;
            if (actviewView == null)
            {
                return;
            }
            actviewView.Unlock();
            actviewView.OnCurrentChanged(null);
            Workspaces[WorkspaceNames.ShellContentWorkspace].Show(actviewView);
        }
Ejemplo n.º 2
0
        public void SetGridView(EntityListView contentView, string fileName, string filterName, string filterString)
        {
            _currentView = contentView.EntityGridView;
            _view        = contentView;
            SetFontSizeAndName();
            formatConditionBindingSource.Clear();
            FilterCondition condtion = new FilterCondition();

            if (fileName != "")
            {
                condtion.FilteName  = filterName;
                condtion.Name       = fileName;
                condtion.Conditions = filterString;
            }
            else
            {
                condtion.FilteName = "Untitled";
            }

            int position = formatConditionBindingSource.Add(condtion);

            formatConditionBindingSource.Position = position;
        }