private void AddManagementExecute()
 {
     try
     {
         using (Service1Client wcf = new Service1Client())
         {
             if (wcf.LoginUserManagement(UserName, login.txtPass.Password))
             {
                 ManagementAddEdit management = new ManagementAddEdit();
                 management.ShowDialog();
                 login.Close();
             }
             else
             {
                 MessageBox.Show("You did not enter valid data!");
                 login.txtName.Text     = "";
                 login.txtPass.Password = "";
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
 public ManagementAddEditViewModel(ManagementAddEdit managementAddEditOpen)
 {
     managementAddEdit = managementAddEditOpen;
 }