public FunctionGenerator(string function) { InitializeComponent(); Icon = Resources.Icon_Vixen3; ThemeUpdateControls.UpdateControls(this); txtFunction.Text = function; }
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; } } }
private void FaceSetupHelper_Load(object sender, EventArgs e) { SetGridDefaults(dataGridViewMouth); SetGridDefaults(dataGridViewOther); ThemeUpdateControls.UpdateControls(this); tabControl.SelectedIndex = 0; }
public AddPixelGrid() { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); }
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; }
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(); }
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; } }
public PreviewCustomCreateForm() { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); }
public EffectDistributionDialog() { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); }
public CoversionProgressForm() { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); }
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; }
public LocationOffsetForm(Vector3D offset) { InitializeComponent(); ThemeUpdateControls.UpdateControls(this); txtX.Text = offset.X.ToString(); txtY.Text = offset.Y.ToString(); }
public DimmingCurveHelper(bool simpleMode) { InitializeComponent(); ThemeUpdateControls.UpdateControls(this); SimpleMode = simpleMode; _curve = new Curve(); }
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(); }
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(); }
public SequencePackageImportSequencesStage(ImportConfig data) { _data = data; InitializeComponent(); ThemeUpdateControls.UpdateControls(this); lstSequences.AutoResizeColumns(ColumnHeaderAutoResizeStyle.None); }
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; } } }
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; }
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; } }
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 = ""; }
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(); }
public NutcrackerProcessingMovie() { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); }
public AudacityImportDialog() { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); }
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); }
public TextDialog(string prompt) { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); labelPrompt.Text = prompt; }
public ColorSetupForm() { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); Icon = Resources.Icon_Vixen3; }
public LipSyncTextConvertFailForm() { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); Icon = Resources.Icon_Vixen3; }
public DimmingCurveHelper() { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); _curve = new Curve(); }
public DiscreteColorPicker() { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); Icon = Resources.Properties.Resources.Icon_Vixen3; }
public TemplateDialog() { InitializeComponent(); Icon = Resources.Icon_Vixen3; ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); }