Exemplo n.º 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Layout.NewClient);

            sellerId = Intent.GetIntExtra("sellerId", 0);

            #region Find Controls

            textViewMessage        = FindViewById <TextView>(Id.textViewMessage);
            listViewDocumentTypes  = FindViewById <ListView>(Id.listViewDocumentTypes);
            editTextDocumentNumber = FindViewById <EditText>(Id.editTextDocumentNumber);
            editTextFirstName      = FindViewById <EditText>(Id.editTextFirstName);
            editTextSecondName     = FindViewById <EditText>(Id.editTextSecondName);
            editTextPhone          = FindViewById <EditText>(Id.editTextPhone);
            editTextAnniversary    = FindViewById <EditText>(Id.editTextAnniversary);
            editTextEmail          = FindViewById <EditText>(Id.editTextEmail);
            editTextAddress        = FindViewById <EditText>(Id.editTextAddress);
            buttonNewClient        = FindViewById <Button>(Id.buttonNewClient);

            #endregion

            #region Event Controls

            buttonNewClient.Click           += ButtonNewClient_Click;
            listViewDocumentTypes.ItemClick += ListViewDocumentTypes_ItemClick;

            #endregion

            WS.ServiceSAL service = new WS.ServiceSAL();
            service.GetAllDocumentTypesCompleted += Service_GetAllDocumentTypesCompleted;
            service.GetAllDocumentTypesAsync();
        }
Exemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.Orders);

            sellerId = Intent.GetIntExtra("sellerId", 0);

            #region Find Controls

            textViewMessage = FindViewById <TextView>(Resource.Id.textViewMessage);

            listViewDocumentTypes    = FindViewById <ListView>(Resource.Id.listViewDocumentTypes);
            buttonSearchDocumentType = FindViewById <Button>(Resource.Id.buttonSearchDocumentType);

            editTextDocumentNumber     = FindViewById <EditText>(Resource.Id.editTextDocumentNumber);
            buttonSearchDocumentNumber = FindViewById <Button>(Resource.Id.buttonSearchDocumentNumber);

            textViewClientName = FindViewById <TextView>(Resource.Id.textViewClientName);

            buttonNewClient         = FindViewById <Button>(Resource.Id.buttonNewClient);
            buttonContinueWithOrder = FindViewById <Button>(Resource.Id.buttonContinueWithOrder);

            #endregion

            #region Event Controls

            buttonSearchDocumentNumber.Click += ButtonSearchDocumentNumber_Click;
            buttonSearchDocumentType.Click   += ButtonSearchDocumentType_Click;

            buttonNewClient.Click         += ButtonNewClient_Click;
            buttonContinueWithOrder.Click += ButtonContinueWithOrder_Click;

            listViewDocumentTypes.ItemClick += ListViewDocumentTypes_ItemClick;

            #endregion

            WS.ServiceSAL service = new WS.ServiceSAL();
            service.GetAllDocumentTypesCompleted += Service_GetAllDocumentTypesCompleted;
            service.GetAllDocumentTypesAsync();
        }