|
@@ -33,6 +33,12 @@ public partial class GeneratePage : UserControl
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
+ if (string.IsNullOrEmpty(FIO.Text))
|
|
|
+ {
|
|
|
+ var box = MessageBoxManager.GetMessageBoxStandard("Ïóñòîå ïîëå", "Ââåäèòå ÔÈÎ äëÿ ãåíåðàöèè äàííûõ");
|
|
|
+ box.ShowAsync();
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (!CheckOnSmoothly())
|
|
|
{
|
|
|
var box = MessageBoxManager.GetMessageBoxStandard("ÔÈÎ íåïðàâèëüíîå", "ÔÈÎ äîëæíî ñîñòîÿòü èç òð¸õ ÷àñòåé (1-Ô,2-È,3-Î)");
|
|
@@ -54,6 +60,12 @@ public partial class GeneratePage : UserControl
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
+ if (string.IsNullOrEmpty(FIO.Text))
|
|
|
+ {
|
|
|
+ var box = MessageBoxManager.GetMessageBoxStandard("Ïóñòîå ïîëå", "Ââåäèòå ÔÈÎ äëÿ ãåíåðàöèè äàííûõ");
|
|
|
+ box.ShowAsync();
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (!CheckOnSmoothly())
|
|
|
{
|
|
|
var box = MessageBoxManager.GetMessageBoxStandard("ÔÈÎ íåïðàâèëüíîå", "ÔÈÎ äîëæíî ñîñòîÿòü èç òð¸õ ÷àñòåé (1-Ô,2-È,3-Î)");
|
|
@@ -71,6 +83,12 @@ public partial class GeneratePage : UserControl
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
+ if (string.IsNullOrEmpty(FIO.Text))
|
|
|
+ {
|
|
|
+ var box = MessageBoxManager.GetMessageBoxStandard("Ïóñòîå ïîëå", "Ââåäèòå ÔÈÎ äëÿ ãåíåðàöèè äàííûõ");
|
|
|
+ box.ShowAsync();
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (!CheckOnSmoothly())
|
|
|
{
|
|
|
var box = MessageBoxManager.GetMessageBoxStandard("ÔÈÎ íåïðàâèëüíîå", "ÔÈÎ äîëæíî ñîñòîÿòü èç òð¸õ ÷àñòåé (1-Ô,2-È,3-Î)");
|
|
@@ -88,6 +106,12 @@ public partial class GeneratePage : UserControl
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
+ if (string.IsNullOrEmpty(FIO.Text))
|
|
|
+ {
|
|
|
+ var box = MessageBoxManager.GetMessageBoxStandard("Ïóñòîå ïîëå", "Ââåäèòå ÔÈÎ äëÿ ãåíåðàöèè äàííûõ");
|
|
|
+ box.ShowAsync();
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (!CheckOnSmoothly())
|
|
|
{
|
|
|
var box = MessageBoxManager.GetMessageBoxStandard("ÔÈÎ íåïðàâèëüíîå", "ÔÈÎ äîëæíî ñîñòîÿòü èç òð¸õ ÷àñòåé (1-Ô,2-È,3-Î)");
|
|
@@ -105,6 +129,12 @@ public partial class GeneratePage : UserControl
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
+ if (string.IsNullOrEmpty(FIO.Text))
|
|
|
+ {
|
|
|
+ var box = MessageBoxManager.GetMessageBoxStandard("Ïóñòîå ïîëå", "Ââåäèòå ÔÈÎ äëÿ ãåíåðàöèè äàííûõ");
|
|
|
+ box.ShowAsync();
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (!CheckOnSmoothly())
|
|
|
{
|
|
|
var box = MessageBoxManager.GetMessageBoxStandard("ÔÈÎ íåïðàâèëüíîå", "ÔÈÎ äîëæíî ñîñòîÿòü èç òð¸õ ÷àñòåé (1-Ô,2-È,3-Î)");
|
|
@@ -122,6 +152,12 @@ public partial class GeneratePage : UserControl
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
+ if (string.IsNullOrEmpty(FIO.Text))
|
|
|
+ {
|
|
|
+ var box = MessageBoxManager.GetMessageBoxStandard("Ïóñòîå ïîëå", "Ââåäèòå ÔÈÎ äëÿ ãåíåðàöèè äàííûõ");
|
|
|
+ box.ShowAsync();
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (!CheckOnSmoothly())
|
|
|
{
|
|
|
var box = MessageBoxManager.GetMessageBoxStandard("ÔÈÎ íåïðàâèëüíîå", "ÔÈÎ äîëæíî ñîñòîÿòü èç òð¸õ ÷àñòåé (1-Ô,2-È,3-Î)");
|
|
@@ -169,6 +205,12 @@ public partial class GeneratePage : UserControl
|
|
|
|
|
|
private void RegenPass(object sender, RoutedEventArgs e)
|
|
|
{
|
|
|
+ if (string.IsNullOrEmpty(FIO.Text))
|
|
|
+ {
|
|
|
+ var box = MessageBoxManager.GetMessageBoxStandard("Ïóñòîå ïîëå", "Ââåäèòå ÔÈÎ äëÿ ãåíåðàöèè äàííûõ");
|
|
|
+ box.ShowAsync();
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (!CheckOnSmoothly())
|
|
|
{
|
|
|
var box = MessageBoxManager.GetMessageBoxStandard("ÔÈÎ íåïðàâèëüíîå", "ÔÈÎ äîëæíî ñîñòîÿòü èç òð¸õ ÷àñòåé (1-Ô,2-È,3-Î)");
|