예제 #1
0
        public OptionsWindow(IPSSubsystem system)
        {
            InitializeComponent();

            _system = system;

            _setting = _system.Setting.Clone() as IPSSetting;
            if (_setting != null)
            {
                _setting.IsModified = false;
                DataContext         = _setting;
            }

            var app = Application.Current as App;

            if (app != null && app.AppBkBrush != null)
            {
                Background = app.AppBkBrush;
            }

            if (_setting != null)
            {
                EnableLDAPControls(_setting.IsLDAPEnabled);
            }
        }
예제 #2
0
        public WiPosPage(IPSSubsystem system)
        {
            InitializeComponent();

            _system       = system;
            _dictLocPin   = new Dictionary <ulong, Image>();
            _dictCamState = new Dictionary <ulong, Polygon>();

            _greenMaker = new BitmapImage();
            _greenMaker.BeginInit();
            _greenMaker.UriSource = new Uri(@"/SupernovaDispatcher;component/Resources/Map-Marker-Ball-Chartreuse.png",
                                            UriKind.Relative);
            _greenMaker.DecodePixelHeight = 48;
            _greenMaker.DecodePixelWidth  = 48;
            _greenMaker.EndInit();

            _highlightMaker = new BitmapImage();
            _highlightMaker.BeginInit();
            _highlightMaker.UriSource = new Uri(@"/SupernovaDispatcher;component/Resources/Marker-Flag--Left-Pink.png",
                                                UriKind.Relative);
            _highlightMaker.DecodePixelHeight = 48;
            _highlightMaker.DecodePixelWidth  = 48;
            _highlightMaker.EndInit();
        }