コード例 #1
0
 public FunctionGenerator(string function)
 {
     InitializeComponent();
     Icon = Resources.Icon_Vixen3;
     ThemeUpdateControls.UpdateControls(this);
     txtFunction.Text = function;
 }
コード例 #2
0
        public SetupDialog(OpenDMXData data)
        {
            InitializeComponent();
            ThemeUpdateControls.UpdateControls(this);
            _data = data;
            var devices = OpenDmx.GetDeviceList();

            if (devices.Any())
            {
                foreach (var device in devices)
                {
                    ComboBoxItem item = new ComboBoxItem($"{device.Description} - {device.SerialNumber} - {device.Id}", device);
                    cmbDeviceList.Items.Add(item);
                }

                if (_data.Device != null)
                {
                    var deviceIndex = devices.FindIndex(x => x.SerialNumber == _data.Device.SerialNumber &&
                                                        x.Id == _data.Device.Id &&
                                                        x.Description == _data.Device.Description);
                    if (deviceIndex >= 0)
                    {
                        cmbDeviceList.SelectedIndex = deviceIndex;
                    }
                    else
                    {
                        cmbDeviceList.SelectedIndex = 0;
                    }
                }
                else
                {
                    cmbDeviceList.SelectedIndex = 0;
                }
            }
        }
コード例 #3
0
ファイル: FaceSetupHelper.cs プロジェクト: Aurbo99/vixen
 private void FaceSetupHelper_Load(object sender, EventArgs e)
 {
     SetGridDefaults(dataGridViewMouth);
     SetGridDefaults(dataGridViewOther);
     ThemeUpdateControls.UpdateControls(this);
     tabControl.SelectedIndex = 0;
 }
コード例 #4
0
 public AddPixelGrid()
 {
     InitializeComponent();
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
 }
コード例 #5
0
ファイル: VixenPreviewSetup3.cs プロジェクト: stewmc/vixen
        public VixenPreviewSetup3()
        {
            InitializeComponent();
            Icon = Resources.Icon_Vixen3;
            menuStrip.Renderer = new ThemeToolStripRenderer();
            ForeColor          = ThemeColorTable.ForeColor;
            BackColor          = ThemeColorTable.BackgroundColor;
            ThemeUpdateControls.UpdateControls(this);
            panel10.BackColor = Color.Black;
            foreach (Control c in panel10.Controls)
            {
                c.BackColor = Color.Black;
            }
            dockPanel.BackColor = ThemeColorTable.BackgroundColor;
            label9.ForeColor    = Color.Turquoise;
            label10.ForeColor   = Color.LimeGreen;
            label11.ForeColor   = Color.White;
            label12.ForeColor   = Color.HotPink;
            label13.ForeColor   = Color.Yellow;

            this.ShowInTaskbar      = false;
            undoButton.Image        = Tools.GetIcon(Resources.arrow_undo, 24);
            undoButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
            redoButton.Image        = Tools.GetIcon(Resources.arrow_redo, 24);
            redoButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
            redoButton.ButtonType   = UndoButtonType.RedoButton;

            undoToolStripMenuItem.Enabled = false;
            redoToolStripMenuItem.Enabled = false;
        }
コード例 #6
0
        public SetupDialog(ElexolEtherIOData data)
        {
            InitializeComponent();
            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;
            ThemeUpdateControls.UpdateControls(this);

            _data = data;

            if (_data.Address == null)
            {
                ipAddressTextBox.Text = "127.0.0.1";
            }
            else
            {
                ipAddressTextBox.Text = _data.Address.ToString();
            }

            if (_data.Port <= 0)
            {
                portTextBox.Text = "2424";
            }
            else
            {
                portTextBox.Text = _data.Port.ToString();
            }

            if (_data.MinimumIntensity > 1)
            {
                m_MinIntensity = _data.MinimumIntensity;
            }
            sliderMinIntensityTrackBar.Value = m_MinIntensity;
            minIntensityLabel.Text           = m_MinIntensity.ToString();
        }
コード例 #7
0
ファイル: SetupDialog.cs プロジェクト: CalcProgrammer1/vixen
        public SetupDialog(Data data)
        {
            InitializeComponent();
            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;
            ThemeUpdateControls.UpdateControls(this);

            _data = data;

            checkBox1.Checked = _data.UseUDP;
            checkBox3.Checked = _data.XmasMode;

            if (_data.UseUDP)
            {
                textBox1.Text   = _data.UdpAddr;
                textBox2.Text   = _data.UdpPort;
                btnOkay.Enabled = true;
            }

            if (!string.IsNullOrEmpty(data.PortName))
            {
                Port = new SerialPort(data.PortName, data.BaudRate, data.Parity, data.DataBits, data.StopBits);
                updateSettingLabel();
                btnOkay.Enabled = true;
            }
            else
            {
                lblSettings.Text = "Not Set";
                btnOkay.Enabled  = false;
            }
        }
コード例 #8
0
 public PreviewCustomCreateForm()
 {
     InitializeComponent();
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
 }
コード例 #9
0
 public EffectDistributionDialog()
 {
     InitializeComponent();
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
 }
コード例 #10
0
 public CoversionProgressForm()
 {
     InitializeComponent();
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
 }
コード例 #11
0
        public VixenPreviewSetupElementsDocument(VixenPreviewControl preview)
        {
            InitializeComponent();
            int iconSize = (int)(24 * ScalingTools.GetScaleFactor());

            buttonAddTemplate.Image = Tools.GetIcon(Resources.add, iconSize);
            buttonAddTemplate.Text  = "";
            var elementTemplates = ApplicationServices.GetAllElementTemplates();

            comboBoxNewItemType.BeginUpdate();
            foreach (IElementTemplate template in elementTemplates)
            {
                ComboBoxItem item = new ComboBoxItem(template.TemplateName, template);
                comboBoxNewItemType.Items.Add(item);
            }
            comboBoxNewItemType.EndUpdate();
            if (comboBoxNewItemType.Items.Count > 0)
            {
                comboBoxNewItemType.SelectedIndex = 0;
            }

            ThemeUpdateControls.UpdateControls(this);
            _preview = preview;
            treeElements.AllowPropertyEdit = false;
            treeElements.AllowWireExport   = false;
        }
コード例 #12
0
 public LocationOffsetForm(Vector3D offset)
 {
     InitializeComponent();
     ThemeUpdateControls.UpdateControls(this);
     txtX.Text = offset.X.ToString();
     txtY.Text = offset.Y.ToString();
 }
コード例 #13
0
ファイル: DimmingCurveHelper.cs プロジェクト: robness/Vixen
 public DimmingCurveHelper(bool simpleMode)
 {
     InitializeComponent();
     ThemeUpdateControls.UpdateControls(this);
     SimpleMode = simpleMode;
     _curve     = new Curve();
 }
コード例 #14
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();
        }
コード例 #15
0
ファイル: SetupDialog.cs プロジェクト: robness/Vixen
        public SetupDialog(ElexolUSBData data)
        {
            InitializeComponent();
            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;
            ThemeUpdateControls.UpdateControls(this);

            _data = data;
            if (_data.PortName != null)
            {
                _serialPort = new SerialPort(_data.PortName, _data.BaudRate, _data.Parity,
                                             _data.DataBits, _data.StopBits);
                updateSettingLabel();
            }
            else
            {
                lblSettings.Text = "Not Set";
                buttonOK.Enabled = false;
            }

            if (_data.MinimumIntensity > 0)
            {
                _minIntensity = _data.MinimumIntensity;
            }
            sliderMinIntensity.Value = _minIntensity;
            lblMinIntensity.Text     = _minIntensity.ToString();
        }
コード例 #16
0
 public SequencePackageImportSequencesStage(ImportConfig data)
 {
     _data = data;
     InitializeComponent();
     ThemeUpdateControls.UpdateControls(this);
     lstSequences.AutoResizeColumns(ColumnHeaderAutoResizeStyle.None);
 }
コード例 #17
0
        public PreviewSetElements(List <PreviewBaseShape> shapes)
        {
            InitializeComponent();
            Icon = Resources.Icon_Vixen3;
            ThemeUpdateControls.UpdateControls(this);
            contextMenuLinkedElements.Renderer = new ThemeToolStripRenderer();
            int imageSize = (int)(16 * ScalingTools.GetScaleFactor());

            contextMenuLinkedElements.ImageScalingSize = new Size(imageSize, imageSize);
            buttonHelp.Image       = Tools.GetIcon(Resources.help, imageSize);
            _shapes                = shapes;
            connectStandardStrings = shapes[0].connectStandardStrings;
            int i = 1;

            foreach (PreviewBaseShape shape in _shapes)
            {
                if (shape.Pixels.Count == 0)
                {
                    continue;
                }
                var newString = new PreviewSetElementString();
                // If this is a Standard string, only set the first pixel of the string
                if (shape.StringType == PreviewBaseShape.StringTypes.Standard)
                {
                    //Console.WriteLine("Standard String");
                    PreviewPixel pixel = shape.Pixels[0];
                    //Console.WriteLine(shape.Pixels[0].Node.Name.ToString());
                    newString.Pixels.Add(pixel.Clone());
                }
                // If this is a pixel string, let them set every pixel
                else if (shape.StringType == PreviewBaseShape.StringTypes.Pixel)
                {
                    foreach (PreviewPixel pixel in shape.Pixels)
                    {
                        newString.Pixels.Add(pixel.Clone());
                    }
                }
                else if (shape.StringType == PreviewBaseShape.StringTypes.Custom)
                {
                    foreach (var pixel in shape.Pixels)
                    {
                        newString.Pixels.Add(pixel.Clone());
                    }
                }

                newString.StringName = "String " + i.ToString();
                _strings.Add(newString);
                i++;
            }

            if (_shapes[0].Parent != null)
            {
                string shapeType = "";
                shapeType = _shapes[0].Parent.GetType().ToString();
                if ((shapeType.Contains("Icicle") && _shapes[0].StringType != PreviewBaseShape.StringTypes.Standard) || shapeType.Contains("MultiString"))
                {
                    tblLightCountControls.Visible = true;
                }
            }
        }
コード例 #18
0
ファイル: StatusForm.cs プロジェクト: starry-au/vixen
        public StatusForm(SuperSchedulerData data, ScheduleExecutor executor)
        {
            InitializeComponent();

            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;
            int iconSize = (int)(24 * ScalingTools.GetScaleFactor());

            buttonPauseShow.Image          = Tools.GetIcon(Resources.control_pause, iconSize);
            buttonPauseShow.Text           = "";
            buttonNextSong.Image           = Tools.GetIcon(Resources.control_end, iconSize);
            buttonNextSong.Text            = "";
            buttonStartScheduler.Image     = Tools.GetIcon(Resources.control_play_blue, iconSize);
            buttonStartScheduler.Text      = "";
            buttonStopNow.Image            = Tools.GetIcon(Resources.control_stop_blue, iconSize);
            buttonStopNow.Text             = "";
            buttonStopGracefully.Image     = Tools.GetIcon(Resources.clock_stop, iconSize);
            buttonStopGracefully.Text      = "";
            buttonViewLog.Image            = Tools.GetIcon(Resources.document_notes, iconSize);
            buttonViewLog.Text             = "";
            buttonPlayShowNow.Image        = Tools.GetIcon(Resources.control_play, iconSize);
            buttonPlayShowNow.Text         = "";
            buttonPlayShowGracefully.Image = Tools.GetIcon(Resources.clock_play, iconSize);
            buttonPlayShowGracefully.Text  = "";

            ThemeUpdateControls.UpdateControls(this);

            ControlBox    = false;
            SchedulerData = data;
            Executor      = executor;
        }
コード例 #19
0
        public ParallelPortConfig(int portAddress)
        {
            InitializeComponent();
            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;
            ThemeUpdateControls.UpdateControls(this);
            Icon = Resources.Properties.Resources.Icon_Vixen3;

            _OtherAddressIndex = 3;
            _DefaultPort       = portAddress;
            switch (portAddress)
            {
            case 0x278:
                portComboBox.SelectedIndex = 1;
                break;

            case 0x378:
                portComboBox.SelectedIndex = 0;
                break;

            case 0x3bc:
                portComboBox.SelectedIndex = 2;
                break;

            case 0:
                portComboBox.SelectedIndex = 0;
                break;

            default:
                portTextBox.Text           = portAddress.ToString("X4");
                portComboBox.SelectedIndex = 3;
                break;
            }
        }
コード例 #20
0
ファイル: NameGenerator.cs プロジェクト: gnkarn/vixen
        public NameGenerator()
        {
            InitializeComponent();
            Icon = Resources.Properties.Resources.Icon_Vixen3;
            buttonMoveRuleUp.Image   = Tools.GetIcon(Resources.Properties.Resources.arrow_up, 16);
            buttonMoveRuleUp.Text    = "";
            buttonMoveRuleDown.Image = Tools.GetIcon(Resources.Properties.Resources.arrow_down, 16);
            buttonMoveRuleDown.Text  = "";
            buttonAddNewRule.Image   = Tools.GetIcon(Resources.Properties.Resources.add, 16);
            buttonAddNewRule.Text    = "";
            buttonDeleteRule.Image   = Tools.GetIcon(Resources.Properties.Resources.delete, 16);
            buttonDeleteRule.Text    = "";
            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;
            ThemeUpdateControls.UpdateControls(this);

            Generators = new List <INamingGenerator>();

            listViewNames.Columns.Clear();
            listViewNames.Columns.Add(new ColumnHeader {
                Text = "Name"
            });
            labelColumnHeader1.Text = "Name";
            labelColumnHeader2.Text = "";
        }
コード例 #21
0
ファイル: VixenApplication.cs プロジェクト: thorhs/vixen
        private void VixenApplication_Load(object sender, EventArgs e)
        {
            initializeEditorTypes();
            menuStripMain.Renderer = new ThemeToolStripRenderer();
            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;
            labelVixen.BackColor            = Color.Transparent;
            openFileDialog.InitialDirectory = SequenceService.SequenceDirectory;

            // Add menu items for the logs.
            string logDirectory = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "Vixen 3", "Logs");

            var di = new System.IO.DirectoryInfo(logDirectory);

            foreach (string logName in di.GetFiles().Select(x => x.Name))
            {
                logsToolStripMenuItem.DropDownItems.Add(logName, null,
                                                        (menuSender, menuArgs) => _ViewLog(((ToolStripMenuItem)menuSender).Text));
                //	logsToolStripMenuItem.DropDownItems.ForeColor = Color.FromArgb(90, 90, 90);
            }
            PopulateRecentSequencesList();
        }
コード例 #22
0
 public NutcrackerProcessingMovie()
 {
     InitializeComponent();
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
 }
コード例 #23
0
ファイル: AudacityImportDialog.cs プロジェクト: stewmc/vixen
 public AudacityImportDialog()
 {
     InitializeComponent();
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
 }
コード例 #24
0
        public ExportDialog(ISequence sequence)
        {
            InitializeComponent();

            ForeColor = ThemeColorTable.ForeColor;
            BackColor = ThemeColorTable.BackgroundColor;
            ThemeUpdateControls.UpdateControls(this);
            Icon = Resources.Icon_Vixen3;

            _sequence  = sequence;
            _exportOps = new Export();
            _exportOps.SequenceNotify += SequenceNotify;

            _sequenceFileName = _sequence.FilePath;

            IEnumerable <string> mediaFileNames =
                (from media in _sequence.SequenceData.Media
                 where media.GetType().ToString().Contains("Audio")
                 where media.MediaFilePath.Length != 0
                 select media.MediaFilePath);

            _audioFileName = "";
            if (mediaFileNames.Any())
            {
                _audioFileName = mediaFileNames.First();
            }

            exportProgressBar.Visible = false;
            currentTimeLabel.Visible  = false;

            _cancelled = false;

            backgroundWorker1.DoWork          += new DoWorkEventHandler(backgroundWorker1_DoWork);
            backgroundWorker1.ProgressChanged += new ProgressChangedEventHandler(backgroundWorker1_ProgressChanged);
        }
コード例 #25
0
 public TextDialog(string prompt)
 {
     InitializeComponent();
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
     labelPrompt.Text = prompt;
 }
コード例 #26
0
 public ColorSetupForm()
 {
     InitializeComponent();
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
     Icon = Resources.Icon_Vixen3;
 }
コード例 #27
0
 public LipSyncTextConvertFailForm()
 {
     InitializeComponent();
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
     Icon = Resources.Icon_Vixen3;
 }
コード例 #28
0
ファイル: DimmingCurveHelper.cs プロジェクト: stewmc/vixen
 public DimmingCurveHelper()
 {
     InitializeComponent();
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
     _curve = new Curve();
 }
コード例 #29
0
ファイル: DiscreteColorPicker.cs プロジェクト: robness/Vixen
 public DiscreteColorPicker()
 {
     InitializeComponent();
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
     Icon = Resources.Properties.Resources.Icon_Vixen3;
 }
コード例 #30
0
ファイル: TemplateDialog.cs プロジェクト: robness/Vixen
 public TemplateDialog()
 {
     InitializeComponent();
     Icon      = Resources.Icon_Vixen3;
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
 }