Ejemplo n.º 1
0
        public VixenApplication()
        {
            InitializeComponent();
            labelVersion.Font = new Font("Segoe UI", 14);
            //Get rid of the ugly grip that we dont want to show anyway.
            //Workaround for a MS bug
            statusStrip.Padding = new Padding(statusStrip.Padding.Left,
                                              statusStrip.Padding.Top, statusStrip.Padding.Left, statusStrip.Padding.Bottom);
            statusStrip.Font = SystemFonts.StatusFont;

            Icon      = Resources.Icon_Vixen3;
            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;
            ThemeUpdateControls.UpdateControls(this);
            statusStrip.BackColor           = ThemeColorTable.BackgroundColor;
            statusStrip.ForeColor           = ThemeColorTable.ForeColor;
            toolStripStatusLabel1.ForeColor = ThemeColorTable.ForeColor;
            toolStripStatusLabelExecutionLight.ForeColor = ThemeColorTable.ForeColor;
            toolStripStatusLabelExecutionState.ForeColor = ThemeColorTable.ForeColor;
            toolStripStatusLabel_memory.ForeColor        = ThemeColorTable.ForeColor;
            contextMenuStripRecent.Renderer = new ThemeToolStripRenderer();

            string[] args = Environment.GetCommandLineArgs();
            foreach (string arg in args)
            {
                _ProcessArg(arg);
            }

            StartJITProfiler();

            if (_rootDataDirectory == null)
            {
                ProcessProfiles();
            }

            _applicationData = new VixenApplicationData(_rootDataDirectory);

            stopping = false;
            PopulateVersionStrings();
            AppCommands = new AppCommand(this);
            Execution.ExecutionStateChanged += executionStateChangedHandler;
            VixenSystem.Start(this, _openExecution, _disableControllers, _applicationData.DataFileDirectory);

            InitStats();

            // other modules look for and create it this way...
            AppCommand toolsMenu = AppCommands.Find("Tools");

            if (toolsMenu == null)
            {
                toolsMenu = new AppCommand("Tools", "Tools");
                AppCommands.Add(toolsMenu);
            }
            var myMenu = new AppCommand("Options", "Options...");

            myMenu.Click += optionsToolStripMenuItem_Click;
            toolsMenu.Add(myMenu);

            toolStripItemClearSequences.Click += (mySender, myE) => ClearRecentSequencesList();
        }
Ejemplo n.º 2
0
        public ConfigFiltersAndPatching(VixenApplicationData applicationData)
        {
            InitializeComponent();

            Icon = Resources.Icon_Vixen3;
            buttonAddFilter.Image = Tools.GetIcon(Resources.add, 16);
            buttonAddFilter.Text  = "";
            buttonDelete.Image    = Tools.GetIcon(Resources.delete, 16);
            buttonDelete.Text     = "";
            buttonZoomIn.Image    = Tools.GetIcon(Resources.zoom_in, 16);
            buttonZoomIn.Text     = "";
            buttonZoomOut.Image   = Tools.GetIcon(Resources.zoom_out, 16);
            buttonZoomOut.Text    = "";


            _applicationData = applicationData;

            project.LibrarySearchPaths.Add(@"Common\");
            project.AutoLoadLibraries = true;
            project.AddLibraryByName("VixenApplication", false);

            project.Name = "filterProject";
            project.Create();

            _visibleLayer = new Layer("Visible");
            _hiddenLayer  = new Layer("Hidden");
            _controllerToControllerShape = new Dictionary <IOutputDevice, ControllerShape>();
            _elementNodeToElementShapes  = new Dictionary <ElementNode, List <ElementNodeShape> >();
            _filterToFilterShape         = new Dictionary <IOutputFilterModuleInstance, FilterShape>();
            _dataFlowComponentToShapes   = new Dictionary <IDataFlowComponent, List <FilterSetupShapeBase> >();
            _elementShapes        = new List <ElementNodeShape>();
            _controllerShapes     = new List <ControllerShape>();
            _filterShapes         = new List <FilterShape>();
            _previousDiagramWidth = 0;
        }
Ejemplo n.º 3
0
        public VixenApplication()
        {
            InitializeComponent();
            Icon = Resources.Icon_Vixen3;

            string[] args = Environment.GetCommandLineArgs();
            foreach (string arg in args) {
                _ProcessArg(arg);
            }

            if (_rootDataDirectory == null)
                ProcessProfiles();

            _applicationData = new VixenApplicationData(_rootDataDirectory);

            stopping = false;
            PopulateVersionStrings();
            AppCommands = new AppCommand(this);
            Execution.ExecutionStateChanged += executionStateChangedHandler;
            VixenSystem.Start(this, _openExecution, _disableControllers, _applicationData.DataFileDirectory);

            InitStats();

            // other modules look for and create it this way...
            AppCommand toolsMenu = AppCommands.Find("Tools");
            if (toolsMenu == null)
            {
                toolsMenu = new AppCommand("Tools", "Tools");
                AppCommands.Add(toolsMenu);
            }
            var myMenu = new AppCommand("Options", "Options...");
            myMenu.Click += optionsToolStripMenuItem_Click;
            toolsMenu.Add(myMenu);
        }
Ejemplo n.º 4
0
		public ConfigFiltersAndPatching(VixenApplicationData applicationData)
		{
			InitializeComponent();

			Icon = Resources.Icon_Vixen3;
			buttonAddFilter.Image = Tools.GetIcon(Resources.add, 16);
			buttonAddFilter.Text = "";
			buttonDelete.Image = Tools.GetIcon(Resources.delete, 16);
			buttonDelete.Text = "";
			buttonZoomIn.Image = Tools.GetIcon(Resources.zoom_in, 16);
			buttonZoomIn.Text = "";
			buttonZoomOut.Image = Tools.GetIcon(Resources.zoom_out, 16);
			buttonZoomOut.Text = "";


			_applicationData = applicationData;

			project.LibrarySearchPaths.Add(@"Common\");
			project.AutoLoadLibraries = true;
			project.AddLibraryByName("VixenApplication", false);

			project.Name = "filterProject";
			project.Create();

			_visibleLayer = new Layer("Visible");
			_hiddenLayer = new Layer("Hidden");
			_controllerToControllerShape = new Dictionary<IOutputDevice, ControllerShape>();
			_elementNodeToElementShapes = new Dictionary<ElementNode, List<ElementNodeShape>>();
			_filterToFilterShape = new Dictionary<IOutputFilterModuleInstance, FilterShape>();
			_dataFlowComponentToShapes = new Dictionary<IDataFlowComponent, List<FilterSetupShapeBase>>();
			_elementShapes = new List<ElementNodeShape>();
			_controllerShapes = new List<ControllerShape>();
			_filterShapes = new List<FilterShape>();
			_previousDiagramWidth = 0;
		}
Ejemplo n.º 5
0
		public VixenApplication()
		{
			InitializeComponent();
			labelVersion.Font = new Font("Segoe UI", 14);
			labelDebugVersion.Font = new Font("Segoe UI", 9);
			//Get rid of the ugly grip that we dont want to show anyway. 
			//Workaround for a MS bug
			statusStrip.Padding = new Padding(statusStrip.Padding.Left,
			statusStrip.Padding.Top, statusStrip.Padding.Left, statusStrip.Padding.Bottom);
			statusStrip.Font = SystemFonts.StatusFont;

			Icon = Resources.Icon_Vixen3;
			ForeColor = ThemeColorTable.ForeColor;
			BackColor = ThemeColorTable.BackgroundColor;
			ThemeUpdateControls.UpdateControls(this);
			statusStrip.BackColor = ThemeColorTable.BackgroundColor;
			statusStrip.ForeColor = ThemeColorTable.ForeColor;
			toolStripStatusLabel1.ForeColor = ThemeColorTable.ForeColor;
			toolStripStatusLabelExecutionLight.ForeColor = ThemeColorTable.ForeColor;
			toolStripStatusLabelExecutionState.ForeColor = ThemeColorTable.ForeColor;
			toolStripStatusLabel_memory.ForeColor = ThemeColorTable.ForeColor;

			string[] args = Environment.GetCommandLineArgs();
			foreach (string arg in args) {
				_ProcessArg(arg);
			}

			StartJITProfiler();

			if (_rootDataDirectory == null)
				ProcessProfiles();

			_applicationData = new VixenApplicationData(_rootDataDirectory);

			stopping = false;
			PopulateVersionStrings();
			AppCommands = new AppCommand(this);
			Execution.ExecutionStateChanged += executionStateChangedHandler;
			VixenSystem.Start(this, _openExecution, _disableControllers, _applicationData.DataFileDirectory);

			InitStats();

			// other modules look for and create it this way...
			AppCommand toolsMenu = AppCommands.Find("Tools");
			if (toolsMenu == null)
			{
				toolsMenu = new AppCommand("Tools", "Tools");
				AppCommands.Add(toolsMenu);
		}
			var myMenu = new AppCommand("Options", "Options...");
			myMenu.Click += optionsToolStripMenuItem_Click;
			toolsMenu.Add(myMenu);
		}
Ejemplo n.º 6
0
        public VixenApplication()
        {
            InitializeComponent();
            //Get rid of the ugly grip that we dont want to show anyway.
            //Workaround for a MS bug
            statusStrip.Padding = new Padding(statusStrip.Padding.Left,
                                              statusStrip.Padding.Top, statusStrip.Padding.Left, statusStrip.Padding.Bottom);

            Icon = Resources.Icon_Vixen3;

            string[] args = Environment.GetCommandLineArgs();
            foreach (string arg in args)
            {
                _ProcessArg(arg);
            }

            StartJITProfiler();

            if (_rootDataDirectory == null)
            {
                ProcessProfiles();
            }

            _applicationData = new VixenApplicationData(_rootDataDirectory);

            stopping = false;
            PopulateVersionStrings();
            AppCommands = new AppCommand(this);
            Execution.ExecutionStateChanged += executionStateChangedHandler;
            VixenSystem.Start(this, _openExecution, _disableControllers, _applicationData.DataFileDirectory);

            InitStats();

            // other modules look for and create it this way...
            AppCommand toolsMenu = AppCommands.Find("Tools");

            if (toolsMenu == null)
            {
                toolsMenu = new AppCommand("Tools", "Tools");
                AppCommands.Add(toolsMenu);
            }
            var myMenu = new AppCommand("Options", "Options...");

            myMenu.Click += optionsToolStripMenuItem_Click;
            toolsMenu.Add(myMenu);
        }
Ejemplo n.º 7
0
        public VixenApplication()
        {
            string[] args = Environment.GetCommandLineArgs();
            foreach(string arg in args) {
                _ProcessArg(arg);
            }

            _applicationData = new VixenApplicationData(_rootDataDirectory);

            stopping = false;
            InitializeComponent();
            labelVersion.Text = "[" + _GetVersionString(VixenSystem.AssemblyFileName) + "]";
            AppCommands = new AppCommand(this);
            Execution.ExecutionStateChanged += executionStateChangedHandler;
            VixenSystem.Start(this, _openExecution, _disableControllers, _applicationData.DataFileDirectory);

            InitStats();
        }
Ejemplo n.º 8
0
        public VixenApplication()
        {
            string[] args = Environment.GetCommandLineArgs();
            foreach (string arg in args)
            {
                _ProcessArg(arg);
            }

            _applicationData = new VixenApplicationData(_rootDataDirectory);

            stopping = false;
            InitializeComponent();
            labelVersion.Text = _GetVersionString(VixenSystem.AssemblyFileName);
            AppCommands       = new AppCommand(this);
            Execution.ExecutionStateChanged += executionStateChangedHandler;
            VixenSystem.Start(this, _openExecution, _disableControllers, _applicationData.DataFileDirectory);

            InitStats();
        }
        public ConfigFiltersAndPatching(VixenApplicationData applicationData)
        {
            InitializeComponent();

            _applicationData = applicationData;

            project.LibrarySearchPaths.Add(@"Common\");
            project.AutoLoadLibraries = true;
            project.AddLibraryByName("VixenApplication", false);

            project.Name = "filterProject";
            project.Create();

            _visibleLayer = new Layer("Visible");
            _hiddenLayer  = new Layer("Hidden");
            _controllerToControllerShape = new Dictionary <IOutputDevice, ControllerShape>();
            _elementNodeToElementShapes  = new Dictionary <ElementNode, List <ElementNodeShape> >();
            _filterToFilterShape         = new Dictionary <IOutputFilterModuleInstance, FilterShape>();
            _dataFlowComponentToShapes   = new Dictionary <IDataFlowComponent, List <FilterSetupShapeBase> >();
            _elementShapes        = new List <ElementNodeShape>();
            _controllerShapes     = new List <ControllerShape>();
            _filterShapes         = new List <FilterShape>();
            _previousDiagramWidth = 0;
        }
Ejemplo n.º 10
0
        public VixenApplication()
        {
            InitializeComponent();
            labelVersion.Font = new Font("Segoe UI", 14);
            //Get rid of the ugly grip that we dont want to show anyway.
            //Workaround for a MS bug
            statusStrip.Padding = new Padding(statusStrip.Padding.Left,
            statusStrip.Padding.Top, statusStrip.Padding.Left, statusStrip.Padding.Bottom);
            statusStrip.Font = SystemFonts.StatusFont;

            Icon = Resources.Icon_Vixen3;
            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;
            ThemeUpdateControls.UpdateControls(this);
            statusStrip.BackColor = ThemeColorTable.BackgroundColor;
            statusStrip.ForeColor = ThemeColorTable.ForeColor;
            toolStripStatusLabel1.ForeColor = ThemeColorTable.ForeColor;
            toolStripStatusLabelExecutionLight.ForeColor = ThemeColorTable.ForeColor;
            toolStripStatusLabelExecutionState.ForeColor = ThemeColorTable.ForeColor;
            toolStripStatusLabel_memory.ForeColor = ThemeColorTable.ForeColor;
            contextMenuStripRecent.Renderer = new ThemeToolStripRenderer();

            string[] args = Environment.GetCommandLineArgs();
            foreach (string arg in args) {
                _ProcessArg(arg);
            }

            StartJITProfiler();

            if (_rootDataDirectory == null)
            {
                ProcessProfiles();
            }

            _applicationData = new VixenApplicationData(_rootDataDirectory);

            _rootDataDirectory = _applicationData.DataFileDirectory;

            if (!CreateLockFile())
            {
                var form = new MessageBoxForm("Profile is already in use or unable to the lock the profile.","Error",MessageBoxButtons.OK, SystemIcons.Error);
                form.ShowDialog();
                form.Dispose();
                Environment.Exit(0);
            }

            stopping = false;
            PopulateVersionStrings();
            AppCommands = new AppCommand(this);
            Execution.ExecutionStateChanged += executionStateChangedHandler;
            VixenSystem.Start(this, _openExecution, _disableControllers, _applicationData.DataFileDirectory);

            InitStats();

            // other modules look for and create it this way...
            AppCommand toolsMenu = AppCommands.Find("Tools");
            if (toolsMenu == null)
            {
                toolsMenu = new AppCommand("Tools", "Tools");
                AppCommands.Add(toolsMenu);
            }
            var myMenu = new AppCommand("Options", "Options...");
            myMenu.Click += optionsToolStripMenuItem_Click;
            toolsMenu.Add(myMenu);

            toolStripItemClearSequences.Click += (mySender, myE) => ClearRecentSequencesList();
        }
Ejemplo n.º 11
0
        public VixenApplication()
        {
            InitializeComponent();
            labelVersion.Font = new Font("Segoe UI", 14);
            //Get rid of the ugly grip that we dont want to show anyway.
            //Workaround for a MS bug
            statusStrip.Padding = new Padding(statusStrip.Padding.Left,
                                              statusStrip.Padding.Top, statusStrip.Padding.Left, statusStrip.Padding.Bottom);
            statusStrip.Font = SystemFonts.StatusFont;

            Icon      = Resources.Icon_Vixen3;
            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;
            ThemeUpdateControls.UpdateControls(this);
            statusStrip.BackColor           = ThemeColorTable.BackgroundColor;
            statusStrip.ForeColor           = ThemeColorTable.ForeColor;
            toolStripStatusLabel1.ForeColor = ThemeColorTable.ForeColor;
            toolStripStatusLabelExecutionLight.ForeColor = ThemeColorTable.ForeColor;
            toolStripStatusLabelExecutionState.ForeColor = ThemeColorTable.ForeColor;
            toolStripStatusLabel_memory.ForeColor        = ThemeColorTable.ForeColor;
            contextMenuStripRecent.Renderer = new ThemeToolStripRenderer();

            string[] args = Environment.GetCommandLineArgs();
            foreach (string arg in args)
            {
                _ProcessArg(arg);
            }

            Logging.Info("Starting JIT Profiler");
            StartJITProfiler();
            Logging.Info("Completed JIT Profiler");

            if (_rootDataDirectory == null)
            {
                Logging.Info("Processing Profiles");
                ProcessProfiles();
                Logging.Info("Finished Processing Profiles");
            }

            _applicationData = new VixenApplicationData(_rootDataDirectory);

            _rootDataDirectory = _applicationData.DataFileDirectory;

            if (IsProfileLocked(_rootDataDirectory) || !CreateLockFile())
            {
                var form = new MessageBoxForm("Profile is already in use or unable to the lock the profile.", "Error", MessageBoxButtons.OK, SystemIcons.Error);
                form.ShowDialog();
                form.Dispose();
                Environment.Exit(0);
            }

            stopping = false;
            PopulateVersionStrings();
            AppCommands = new AppCommand(this);
            Execution.ExecutionStateChanged += executionStateChangedHandler;
            if (!VixenSystem.Start(this, _openExecution, _disableControllers, _applicationData.DataFileDirectory))
            {
                var messageBox = new MessageBoxForm("An error occured starting the system and the application will be halted.", "Error", MessageBoxButtons.OK, SystemIcons.Error);
                messageBox.ShowDialog();
                Application.Exit();
            }

            InitStats();

            // other modules look for and create it this way...
            AppCommand toolsMenu = AppCommands.Find("Tools");

            if (toolsMenu == null)
            {
                toolsMenu = new AppCommand("Tools", "Tools");
                AppCommands.Add(toolsMenu);
            }
            var myMenu = new AppCommand("Options", "Options...");

            myMenu.Click += optionsToolStripMenuItem_Click;
            toolsMenu.Add(myMenu);

            toolStripItemClearSequences.Click += (mySender, myE) => ClearRecentSequencesList();
        }
Ejemplo n.º 12
0
        public ConfigFiltersAndPatching(VixenApplicationData applicationData)
        {
            InitializeComponent();

            _applicationData = applicationData;

            project.LibrarySearchPaths.Add(@"Common\");
            project.AutoLoadLibraries = true;
            project.AddLibraryByName("VixenApplication", false);

            project.Name = "filterProject";
            project.Create();

            _visibleLayer = new Layer("Visible");
            _hiddenLayer = new Layer("Hidden");
            _controllerToControllerShape = new Dictionary<IOutputDevice, ControllerShape>();
            _elementNodeToElementShapes = new Dictionary<ElementNode, List<ElementNodeShape>>();
            _filterToFilterShape = new Dictionary<IOutputFilterModuleInstance, FilterShape>();
            _dataFlowComponentToShapes = new Dictionary<IDataFlowComponent, List<FilterSetupShapeBase>>();
            _elementShapes = new List<ElementNodeShape>();
            _controllerShapes = new List<ControllerShape>();
            _filterShapes = new List<FilterShape>();
            _previousDiagramWidth = 0;
        }