public EdgePropertiesForm(Edge edge) { InitializeComponent(); this.Background = Statics.FormBackground; this.edge = edge; Statics.AddImageToButtonWithText(SaveButton, "checkmark48.png"); Statics.AddImageToComboBox(comboBox1, "arrow1.png"); Statics.AddImageToComboBox(comboBox1, "arrow6.png"); Statics.AddImageToComboBox(comboBox1, "arrow3.png"); Statics.AddImageToComboBox(comboBox1, "arrow2.png"); Statics.AddImageToComboBox(comboBox1, "arrow5.png"); Statics.AddImageToComboBox(comboBox1, "arrow4.png"); comboBox1.SelectedIndex = (int)edge.HeadSymbol; Statics.AddImageToComboBox(comboBox2, "arrow1.png"); Statics.AddImageToComboBox(comboBox2, "arrow6.png"); Statics.AddImageToComboBox(comboBox2, "arrow3.png"); Statics.AddImageToComboBox(comboBox2, "arrow2.png"); Statics.AddImageToComboBox(comboBox2, "arrow5.png"); Statics.AddImageToComboBox(comboBox2, "arrow4.png"); comboBox2.SelectedIndex = (int)edge.TailSymbol; Statics.AddImageToComboBox(comboBox3, "arrow1.png"); Statics.AddImageToComboBox(comboBox3, "arrow8.png"); Statics.AddImageToComboBox(comboBox3, "arrow9.png"); comboBox3.SelectedIndex = (int)edge.EdgeBrushType; }
public NodePropertiesForm(Node node) { InitializeComponent(); Statics.AddImageToButtonWithText(SaveButton, "checkmark48.png"); this.node = node; WidthTextBox.Text = node.Width.ToString(); HeightTextBox.Text = node.Height.ToString(); LabelTextBox.Text = node.Label.ToString(); if (node.IsFontBold) { IsBoldCheckBox.IsChecked = true; } if (node.IsFontItalic) { IsItalicCheckBox.IsChecked = true; } if (node.FontDecoration == FontDecoration.Underline) { radioButton10.IsChecked = true; } else if (node.FontDecoration == FontDecoration.Stroke) { radioButton11.IsChecked = true; } colorBorder1.Background = new SolidColorBrush(node.BackgroundColor); colorBorder2.Background = new SolidColorBrush(node.ForeGroundColor); updatesyleBorders(); FontComboBox.Items.Add("10"); FontComboBox.Items.Add("12"); FontComboBox.Items.Add("14"); FontComboBox.Items.Add("16"); FontComboBox.Items.Add("18"); FontComboBox.Items.Add("20"); FontComboBox.Items.Add("24"); FontComboBox.Items.Add("36"); FontComboBox.Items.Add("72"); FontComboBox.Text = node.FontSize.ToString(); SetBackgroundStyleColor(node.BackgroundColorStyle); if (node.Properties.Contains("RightToLeft")) { LabelTextBox.FlowDirection = FlowDirection.RightToLeft; IsRightToLeftCheckbox.IsChecked = true; } LabelTextBox.Focus(); LabelTextBox.CaretIndex = LabelTextBox.Text.Length; }
public EdgePartProperties(EdgePart edgePart) { InitializeComponent(); Statics.AddImageToButtonWithText(AddEdgeLabelButton, "Tango Icons\\list-add.png"); Statics.AddImageToButtonWithText(CloseButton, "checkmark48.png"); Statics.AddImageToButtonWithText(RemoveEdgeLabelButton, "Tango Icons\\edit-delete.png"); Statics.AddImageToButtonWithText(ApplyChangesButton, "Tango Icons\\view-refresh.png"); this.edgePart = edgePart; PositionSlider.Value = 50; PositionSlider1.Value = 50; groupBox1.IsEnabled = false; TextTextBox.Focus(); showAll(); }