Changeset 216
- Timestamp:
- 03/31/07 16:33:57 (1 year ago)
- Files:
-
- TeachingSoftware/Backend/Component.cs (modified) (2 diffs)
- TeachingSoftware/GUI/Conditional_Builder.xaml (modified) (3 diffs)
- TeachingSoftware/GUI/Conditional_Builder.xaml.cs (modified) (1 diff)
- TeachingSoftware/GUI/Method_Builder.xaml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
TeachingSoftware/Backend/Component.cs
r185 r216 32 32 /// </summary> 33 33 private ComponentInfo myInfo; 34 35 private string myComment; 34 36 35 37 // ? shape *****The actual type of <c>shape</c> and <c>color</c> will be determined by WPF … … 95 97 } 96 98 99 public void setComment(String comment) 100 { 101 myComment = comment; 102 } 103 104 public String getComment() 105 { 106 return myComment; 107 } 108 97 109 /// <summary> 98 110 /// Set member <c>myInfo</c> TeachingSoftware/GUI/Conditional_Builder.xaml
r205 r216 26 26 <Label HorizontalAlignment="Center" Margin="25,0,0,0" x:Name="Label_Header" VerticalAlignment="Top" Content="Conditional Builder" FontFamily="Arial" FontSize="18" FontWeight="Bold"/> 27 27 <Label HorizontalAlignment="Left" Margin="25,75,0,0" x:Name="Label_Type" VerticalAlignment="Top" Content="Conditional Type:"/> 28 <ComboBox HorizontalAlignment="Left" Margin=" 200,75,0,0" x:Name="ComboBox_Types" VerticalAlignment="Top" IsSynchronizedWithCurrentItem="False" Width="125" Height="Auto" SelectedIndex="-1" TabIndex="1">28 <ComboBox HorizontalAlignment="Left" Margin="179,79,0,0" x:Name="ComboBox_Types" VerticalAlignment="Top" IsSynchronizedWithCurrentItem="False" Width="125" Height="Auto" SelectedIndex="-1" TabIndex="1"> 29 29 <ComboBoxItem Content="If" Selected="If_Selected" x:Name="ComboItem_If" Background="#00EEEAEA"/> 30 30 <ComboBoxItem x:Name="ComboItem_Else" Content="Else" Selected="Else_Selected"/> … … 64 64 <ListBox RenderTransformOrigin="1.163,1.518" d:LayoutOverrides="Margin" Margin="82.5,121.19,103.623,26.81" IsSynchronizedWithCurrentItem="False"/> 65 65 </Grid> 66 <ListBox HorizontalAlignment="Left" Margin="25,127,0,125" x:Name="ListBox_Variables_CB" ItemsSource="{Binding}" Width="100" Height="Auto" IsSynchronizedWithCurrentItem="False" MouseDoubleClick="ListBox_DoubleClick_CB" VerticalAlignment="Stretch" Background="#FFEEEAEA"/> 66 <ListBox HorizontalAlignment="Left" Margin="35,135,0,117" x:Name="ListBox_Variables_CB" Width="100" Height="Auto" IsSynchronizedWithCurrentItem="False" MouseDoubleClick="ListBox_DoubleClick_CB" VerticalAlignment="Stretch" Background="#FFEEEAEA" RenderTransformOrigin="0.51,0.495"> 67 <Grid Width="96" Height="4"/> 68 <Label Width="11" Height="4" Content="Label"/> 69 </ListBox> 67 70 <Button d:LayoutOverrides="Height" HorizontalAlignment="Left" Margin="50,340,0,0" x:Name="Button_Submit" VerticalAlignment="Top" Content="Submit" RenderTransformOrigin="0.5,-0.309" Width="50" Click="Submit_Clicked" TabIndex="8"/> 68 71 <Button RenderTransformOrigin="0.849,0.675" HorizontalAlignment="Left" Margin="50,370,0,50" x:Name="Button_Cancel" VerticalAlignment="Top" Width="50" Content="Cancel" Click="Cancel_Clicked" Height="22" TabIndex="5"/> … … 72 75 <Label HorizontalAlignment="Left" Margin="25,104,0,0" x:Name="Label_variables" VerticalAlignment="Top" Content="Variables:"/> 73 76 </Grid> 77 <Label HorizontalAlignment="Left" Margin="62,66,0,0" x:Name="Label_Title" VerticalAlignment="Top" Width="86" Height="25" Content="Title:"/> 78 <TextBox HorizontalAlignment="Left" Margin="121,62,0,0" x:Name="TextBox_Title" VerticalAlignment="Top" Width="177" Height="26" Text="" TextWrapping="Wrap"/> 79 <Label Margin="254,0,299,100" x:Name="Label_Description" VerticalAlignment="Bottom" Height="40" Content="Description:"/> 80 <TextBox HorizontalAlignment="Right" Margin="0,0,118,73" x:Name="TextBox_Description" VerticalAlignment="Bottom" Width="177" Height="67" Text="" TextWrapping="Wrap"/> 74 81 </Grid> 75 82 </Border> TeachingSoftware/GUI/Conditional_Builder.xaml.cs
r207 r216 180 180 { 181 181 ConditionalComposite myReturn = null; 182 myReturn.setComment(this.TextBox_Description.ToString()); 182 183 183 184 if (this.selected_type == types.If) TeachingSoftware/GUI/Method_Builder.xaml
r205 r216 42 42 </Button.Background> 43 43 </Button> 44 <Button HorizontalAlignment="Left" Margin="175,300,0,0" x:Name="Button_Cancel" VerticalAlignment="Top" Content="Cancel" Click="Cancel_Clicked" TabIndex="10">44 <Button Margin="0,300,193.587,0" x:Name="Button_Cancel" VerticalAlignment="Top" Content="Cancel" Click="Cancel_Clicked" TabIndex="10" d:LayoutOverrides="Width" HorizontalAlignment="Right"> 45 45 <Button.Background> 46 46 <LinearGradientBrush EndPoint="0,0.769" StartPoint="0,-0.231">
