private Tuple <int, int> GetMatrixDimensions(Control sender) { var location = sender.PointToScreen(new Point(sender.Width, 0)); frmDimension frm = new frmDimension(true, location); frm.ShowDialog(this); return(frm.MatrixOrder); }
private int?GetVectorDimensions(Control sender) { var location = sender.PointToScreen(new Point(sender.Width, 0)); frmDimension frm = new frmDimension(false, location); frm.ShowDialog(this); return(frm.Dimensions); }