public override string ToString() { string Res = null; foreach (DetalleArticulo Det in this) { if (Res == null) { Res = Det.ToString(); } else { Res += System.Environment.NewLine + Det.ToString(); } } return(Res); }
private void BtnDetB_Click(object sender, EventArgs e) { try { if (numRow2.Value != numCol2.Value) { MessageBox.Show("Rows and Columns must be the same size!"); return; } B = Save(BoxB); double Det; Det = B.Determinant(B, BoxB.GetLength(0)); MessageBox.Show(Det.ToString()); } catch { MessageBox.Show("Input Error!"); return; } }