Beispiel #1
0
        private void OnDeviceTypeChanged(object sender, DeviceTypeChangedEventArgs e)
        {
            State.CurrentDeviceType = e.DeviceType;

            /*
             * if (State.CurrentDeviceType.Equals(State.TargetDeviceType)) {
             *  SetVisible(true);
             * }
             * else {
             *  SetVisible(false);
             * }*/
        }
        public void OnBrowserColumnChanged(Protocol.Event e)
        {
            int totalResults   = e.BrowserEvent.OnBrowserColumnChangedEvent.TotalResults;
            int resultsPerPage = e.BrowserEvent.OnBrowserColumnChangedEvent.ResultsPerPage;

            browserColumn.ExpandToSize(resultsPerPage);
            State.ColumnSize = Math.Max(resultsPerPage, State.ColumnSize);

            if (DeviceTypeChanged != null)
            {
                var args = new DeviceTypeChangedEventArgs(e.BrowserEvent.OnBrowserColumnChangedEvent.DeviceType);
                DeviceTypeChanged(this, args);
            }
        }