<Storyboard x:Key="CloseMessageWindow" Storyboard.TargetName="Message_Window" Completed="CloseMessageWindow_Completed"> <DoubleAnimation Storyboard.TargetProperty="RenderTransform.Children[0].Angle" Duration="0:0:2" To="360"/> <DoubleAnimation Storyboard.TargetProperty="RenderTransform.Children[1].ScaleX" Duration="0:0:2" To="0"/> <DoubleAnimation Storyboard.TargetProperty="RenderTransform.Children[1].ScaleY" Duration="0:0:2" To="0"/> <DoubleAnimation Storyboard.TargetProperty="Opacity" Duration="0:0:2.5" To="0"/> </Storyboard>
Dispatcher.Invoke
await Task.Run
Parallel.For
for
foreach
for loop
Collections
switch
if else
if
+=
StringBuilder
String.Join
Skip(i).Take()
"AssemblyInfo.cs"
[assembly: Guid( "F6341D4D-5A4D-429F-B587-28CD958B27F2" )]
LINQ
for (int i = 0; i < UniqueISBN.Length; i++) { OleDbCommand_Update.CommandText = string.Join(null, "Select Count(*) From BookTable Where ISBN = ", UniqueISBN[i]); OleDbCommand_Update.CommandText = string.Join(null, "Update BookTable Set Inventory = ", (int)OleDbCommand_Update.ExecuteScalar(), " Where ISBN = ", UniqueISBN[i]); OleDbCommand_Update.ExecuteNonQuery(); }
for (int i = 0; i < UniqueISBN.Length; i++) { int Inventory = BookDataView.Table.AsEnumerable().Count(Row => Row.Field<string>("ISBN") == UniqueISBN[i]); EnumerableRowCollection<DataRow> Query = from Row in BookDataView.Table.AsEnumerable() where Row.Field<string>("ISBN") == UniqueISBN[i] select Row; foreach (DataRow Row in Query) { Row["Inventory"] = Inventory; } BookDataView = Query.AsDataView(); }
var dataType = BookDataGrid.ItemsSource.GetType().BaseType;