本文整理匯總了C#中System.Matrix.Initialize方法的典型用法代碼示例。如果您正苦於以下問題:C# Matrix.Initialize方法的具體用法?C# Matrix.Initialize怎麽用?C# Matrix.Initialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Matrix
的用法示例。
在下文中一共展示了Matrix.Initialize方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: MainWindow
public MainWindow()
{
InitializeComponent();
Matrix matrix = new Matrix(3, 3);
matrix.Initialize(0);
// dataGrid.ItemsSource = matrix;
}
示例2: Main
static void Main(string[] args)
{
Matrix mat = new Matrix(2, 2);
mat.Initialize(20);
int a = 33;
Serializer x = new Serializer();
List<int> l = new List<int>();
l.Add(5);
x.WriteObject(mat,@"C:\qwer.xml");
var b = x.ReadObject(@"C:\qwer.xml");
}
示例3: button1_Click
public void button1_Click(object sender, RoutedEventArgs e)
{
wrapPanel.Children.Clear();
Matrix matrix = new Matrix(Convert.ToInt32(textBox.Text), Convert.ToInt32(textBox1.Text));
matrix.Initialize(1);
CreateTextBoxes(matrix, wrapPanel, ref textBoxDimA,ref cellsDimA);
}
示例4: button_Click
private void button_Click(object sender, RoutedEventArgs e)
{
wrapPanel1.Children.Clear();
Matrix matrix = new Matrix(Convert.ToInt32(textBox2.Text), Convert.ToInt32(textBox3.Text));
matrix.Initialize(2);
CreateTextBoxes(matrix, wrapPanel1,ref textBoxDimB, ref cellsDimB);
}