Beispiel #1
0
        private void isSend()
        {
            var SendMessageObject = new MethodsViewModel();

            SendMessageObject.sendMessage(PrintName, PrintAddress);
            MessageBox.Show("Data Sent");
        }
Beispiel #2
0
        public void GetPerson()
        {
            var  GetSearchObject = new MethodsViewModel();
            bool isPersonExist   = false;

            while (isPersonExist == false)
            {
                var Person = GetSearchObject.isSearch(personList);
                if (Person != null)
                {
                    PrintName     = Person.Name;
                    PrintAddress  = Person.Address;
                    canClear      = true;
                    isPersonExist = true;
                }
                else
                {
                    MessageBox.Show("NO RECORD, TRY AGAIN!", "Warning", MessageBoxButton.OK, MessageBoxImage.Warning);
                }
            }
        }