private void moveDownButton_Click(object sender, System.EventArgs e) { TextDisplayTabSettings.TabInfo tab = tabSettings.Tabs[selectedIndex]; tabSettings.Tabs.RemoveAt(selectedIndex++); tabSettings.Tabs.Insert(selectedIndex, tab); FillListBox(); }
public TextDisplayTabPage(TextDisplayTabSettings.TabInfo tabInfo) : this() { this.Name = tabInfo.Name; // this.prefix = TextDisplayTabSettings.Prefix + tabInfo.Name; this.Text = tabInfo.Title; this.Display.Content = tabInfo.Content; }
private void InitDisplay(TextDisplayTabSettings.TabInfo tabInfo) { textBox1.Text = tabInfo.Title; TextDisplayContent content = tabInfo.Content; showStandardOutput.Checked = content.Out; showErrorOutput.Checked = content.Error; showTraceOutput.Checked = content.Trace; logLevelComboBox.SelectedIndex = (int)content.LogLevel; labelsComboBox.SelectedIndex = (int)content.Labels; enabledCheckBox.Checked = tabInfo.Enabled; }
private void InitDisplay(TextDisplayTabSettings.TabInfo tabInfo) { textBox1.Text = tabInfo.Title; TextDisplayContent content = tabInfo.Content; showStandardOutput.Checked = (content & TextDisplayContent.Out) != 0; showErrorOutput.Checked = (content & TextDisplayContent.Error) != 0; showTraceOutput.Checked = (content & TextDisplayContent.Trace) != 0; showLogOutput.Checked = (content & TextDisplayContent.Log) != 0; testCaseLabels.Checked = (content & TextDisplayContent.Labels) != 0; suppressLabelsIfNoOutput.Checked = (content & TextDisplayContent.LabelOnlyOnOutput) != 0; enabledCheckBox.Checked = tabInfo.Enabled; }