private void showInfoErrorForm(String msg) { InfoErrorDialogForm infoErrorDialogForm = new InfoErrorDialogForm(true, msg); infoErrorDialogForm.StartPosition = FormStartPosition.CenterScreen; infoErrorDialogForm.ShowDialog(); infoErrorDialogForm.Dispose(); }
private void copyValueFromMaskedTxb() { int aux; if (int.TryParse(mtbLinesPage.Text, out aux)) { linesPerPage = int.Parse(mtbLinesPage.Text); } else { String msg = "Invalid value!"; InfoErrorDialogForm infoErrorDialog = new InfoErrorDialogForm(true, msg); infoErrorDialog.ShowDialog(); } }
private void showErrorInfoWindow(String msg) { InfoErrorDialogForm error = new InfoErrorDialogForm(true, msg); error.ShowDialog(); error.Dispose(); }
private void showInfoWindow(String msg) { InfoErrorDialogForm info = new InfoErrorDialogForm(false, msg); info.StartPosition = FormStartPosition.CenterScreen; info.ShowDialog(); info.Dispose(); }
private void showErrorInfoWindow(String msg) { InfoErrorDialogForm error = new InfoErrorDialogForm(true, msg); error.StartPosition = FormStartPosition.CenterScreen; error.ShowDialog(); error.Dispose(); }