Example #1
0
        private void FilterWheelSetupDialogForm_Load(object sender, EventArgs e)
        {
            Form F = this.FindForm();

            foreach (var w in new List <WiseFilterWheel.Wheel> {
                WiseFilterWheel.wheel4, WiseFilterWheel.wheel8
            })
            {
                for (int i = 0; i < w._nPositions; i++)
                {
                    TextBox tb = (TextBox)F.Controls.Find(string.Format("textBox{0}RFID{1}", w._name, i), true)[0];
                    CueProvider.SetCue(tb, "Missing");
                }
            }
        }
Example #2
0
        private void checkBoxEditableRFIDs_CheckedChanged(object sender, EventArgs e)
        {
            Form     F  = this.FindForm();
            CheckBox cb = sender as CheckBox;

            foreach (var w in WiseFilterWheel.wheels)
            {
                for (int i = 0; i < w._nPositions; i++)
                {
                    TextBox tb;

                    tb = (TextBox)F.Controls.Find(string.Format("textBox{0}RFID{1}", w._name, i), true)[0];
                    CueProvider.SetCue(tb, "Missing");
                    tb.Enabled = cb.Checked;
                }
            }
        }
Example #3
0
        public Editor(Document document)
        {
            if (document == null)
            {
                throw new ArgumentNullException("document");
            }

            this.document = document;

            InitializeComponent();

            this.listViewInputFiles.Columns.Clear();
            var mWidth = (int)listViewInputFiles.Font.Size;

            this.listViewInputFiles.Columns.AddRange(new[] {
                new ColumnHeader {
                    Text = "Oid", Width = 5 * mWidth
                },
                new ColumnHeader {
                    Text = "Artist", Width = 16 * mWidth
                },
                new ColumnHeader {
                    Text = "Album", Width = 16 * mWidth
                },
                new ColumnHeader {
                    Text = "#", Width = 5 * mWidth
                },
                new ColumnHeader {
                    Text = "Title", Width = 32 * mWidth
                },
            });

            CueProvider.SetCue(textBoxTitle, "automatic");
            CueProvider.SetCue(textBoxProductId, "automatic");

            UpdateView();
        }
Example #4
0
 private void SetCueBanners()
 {
     CueProvider.SetCue(txtPassword, Resources.Strings.cuePassword);
     CueProvider.SetCue(txtFileDescription, Resources.Strings.cueFileDescription);
     CueProvider.SetCue(txtFileDescription, Resources.Strings.cueFileDescription);
 }