Esempio n. 1
0
        public override void Initialize(params object[] list)
        {
            mainWindowSize        = SettingsManager.Settings.GetValue <Rect>(SettingsManager.MainWindowRect, new Rect(200, 200, 500, 400));
            mainWindowSize.width  = mainWindowSize.width > 500 ? 500 : mainWindowSize.width;
            mainWindowSize.height = mainWindowSize.height > 400 ? 400 : mainWindowSize.height;

            currentView = ViewType.Parts;

            currentSelectedBaseAction = new List <BaseAction>();

            highlighter = new Highlighter();

            partFilter          = new PartFilter();
            this.FilterChanged += partFilter.ViewFilterChanged;
        }
Esempio n. 2
0
        public override void Initialize(params object[] list)
        {
            mainWindowSize = SettingsManager.Settings.GetValue<Rect>(SettingsManager.MainWindowRect, new Rect(200, 200, 500, 400));
            mainWindowSize.width = mainWindowSize.width > 500 ? 500 : mainWindowSize.width;
            mainWindowSize.height = mainWindowSize.height > 400 ? 400 : mainWindowSize.height;

            currentView = ViewType.Parts;

            currentSelectedBaseAction = new List<BaseAction>();

            highlighter = new Highlighter();

            partFilter = new PartFilter();
            this.FilterChanged += partFilter.ViewFilterChanged;
        }