예제 #1
0
 private void Cancel_Button_Click(object sender, RoutedEventArgs e)
 {
     FNText.Clear();
     SNText.Clear();
     TelText.Clear();
     AddressText.Clear();
     tbctrl.SelectedIndex = 4;
 }
 /// <summary>
 /// Gets the Address
 /// </summary>
 /// <returns>address</returns>
 public string GetAddressAttributeValue()
 {
     AddressText.Wait(2);
     if (Driver.WrappedDriver.GetType() == typeof(DummyDriver))
     {
         AddressText.FakeAttributeValue = FakeText;
     }
     return(AddressText.GetAttribute("value").Trim());
 }
 /// <summary>
 /// Gets the Address
 /// </summary>
 /// <returns>address</returns>
 public string GetAddress()
 {
     AddressText.Wait(2);
     if (Driver.WrappedDriver.GetType() == typeof(DummyDriver))
     {
         AddressText.Text = FakeText;
     }
     return(AddressText.Text.Trim());
 }
예제 #4
0
 private void EditClientForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     NameText.Clear();
     PhoneText.Clear();
     EmailText.Clear();
     INNText.Clear();
     ScoreText.Clear();
     AddressText.Clear();
     bsToShow = null;
 }
예제 #5
0
 private void button1_Click(object sender, EventArgs e)
 {
     NameText.Clear();
     PhoneText.Clear();
     EmailText.Clear();
     INNText.Clear();
     ScoreText.Clear();
     AddressText.Clear();
     Close();
 }
예제 #6
0
        /// <summary>
        /// Parses the address out of the AddressText text box.
        /// </summary>
        /// <param name="addr">Receives the parsed address.  Will be NON_ADDR for "NA".</param>
        /// <returns>True if the string parsed successfully.</returns>
        private bool ParseAddress(out int addr)
        {
            // "NA" for non-addressable?
            string upper = AddressText.ToUpper();

            if (upper == Address.NON_ADDR_STR)
            {
                addr = Address.NON_ADDR;
                return(true);
            }
            // Parse numerically.
            return(Asm65.Address.ParseAddress(AddressText, mMaxAddressValue, out addr));
        }
예제 #7
0
        private void AddCustomerSubmit_Click(object sender, RoutedEventArgs e)
        {
            string[] Data = new string[7];
            Data[0] = IDText.GetLineText(0);
            Data[1] = NameText.GetLineText(0);
            Data[2] = PhoneText.GetLineText(0);
            Data[3] = AddressText.GetLineText(0);
            Data[4] = SexText.GetLineText(0);
            Data[5] = Data[0];
            Data[6] = TypeText.GetLineText(0);

            acc.createCustomer(Data).ShowDialog();

            this.Close();
        }
예제 #8
0
        private void UpdateBTN_Click(object sender, EventArgs e)
        {
            connect.Open();
            SqlCommand command = new SqlCommand("update Customer set CustomerID='" + CustomerIDText.Text.ToString() + "',Name='" + NameText.Text.ToString() + "',Surname='" + SurnameText.Text.ToString() + "',Address='" + AddressText.Text.ToString() + "',Telephone='" + TelephoneText.Text.ToString() + "',Email='" + EmailText.Text.ToString() + "'where CustomerID=" + CustomerID + "", connect);

            command.ExecuteNonQuery();
            connect.Close();
            viewdetails();
            CustomerIDText.Clear();
            NameText.Clear();
            SurnameText.Clear();
            AddressText.Clear();
            TelephoneText.Clear();
            EmailText.Clear();
        }
예제 #9
0
        private void AddEmployeeSubmit_Click(object sender, RoutedEventArgs e)
        {
            string[] Data = new string[5];
            Data[0] = IDText.GetLineText(0);
            Data[1] = NameText.GetLineText(0);
            Data[2] = PhoneText.GetLineText(0);
            Data[3] = AddressText.GetLineText(0);
            Data[4] = SexText.GetLineText(0);
            string EID       = Data[0];
            string Salary    = SalaryText.GetLineText(0);
            string StartDate = StartDateText.GetLineText(0);
            string ManagerID = ManagerText.GetLineText(0);

            MakePerson   P = new MakePerson(Data, cn);
            MakeEmployee E = new MakeEmployee(EID, Salary, StartDate, ManagerID, cn);

            try
            {
                P.CreatePerson();
            }
            catch (OleDbException ex)
            {
                ErrorWindow Error = new ErrorWindow(ex.Message);
                Error.ShowDialog();
                return;
            }

            try
            {
                E.CreateEmployee();
            }
            catch (OleDbException ex)
            {
                try
                {
                    P.DeletePerson();
                }
                catch (OleDbException ex2) { }

                ErrorWindow Error = new ErrorWindow(ex.Message);
                Error.ShowDialog();
                return;
            }

            this.Close();
        }
예제 #10
0
        private void DeleteBTN_Click(object sender, EventArgs e)
        {
            connect.Open();
            SqlCommand komut = new SqlCommand("Delete From Customer Where CustomerID=(" + sira + ")", connect);

            komut.ExecuteNonQuery();
            connect.Close();
            viewdetails();

            viewdetails();
            CustomerIDText.Clear();
            NameText.Clear();
            SurnameText.Clear();
            AddressText.Clear();
            TelephoneText.Clear();
            EmailText.Clear();
        }
예제 #11
0
        private void AddEmployeeSubmit_Click(object sender, RoutedEventArgs e)
        {
            string[] Data = new string[9];
            Data[0] = IDText.GetLineText(0);
            Data[1] = NameText.GetLineText(0);
            Data[2] = PhoneText.GetLineText(0);
            Data[3] = AddressText.GetLineText(0);
            Data[4] = SexText.GetLineText(0);
            Data[5] = Data[0];
            Data[6] = SalaryText.GetLineText(0);
            Data[7] = StartDateText.GetLineText(0);
            Data[8] = ManagerText.GetLineText(0);

            aec.createEmployee(Data).ShowDialog();

            this.Close();
        }
예제 #12
0
        private void AddCustomerSubmit_Click(object sender, RoutedEventArgs e)
        {
            string[] Data = new string[5];
            Data[0] = IDText.GetLineText(0);
            Data[1] = NameText.GetLineText(0);
            Data[2] = PhoneText.GetLineText(0);
            Data[3] = AddressText.GetLineText(0);
            Data[4] = SexText.GetLineText(0);
            string EID  = Data[0];
            string Type = TypeText.GetLineText(0);

            MakePerson   P = new MakePerson(Data, cn);
            MakeCustomer E = new MakeCustomer(EID, Type, cn);

            try
            {
                P.CreatePerson();
            }
            catch (OleDbException ex)
            {
                ErrorWindow Error = new ErrorWindow(ex.Message);
                Error.ShowDialog();
                return;
            }

            try
            {
                E.CreateCustomer();
            }
            catch (OleDbException ex)
            {
                try
                {
                    P.DeletePerson();
                }
                catch (OleDbException ex2) { }

                ErrorWindow Error = new ErrorWindow(ex.Message);
                Error.ShowDialog();
                return;
            }

            this.Close();
        }
예제 #13
0
파일: Form1.cs 프로젝트: ecejmsr/C-Forms
        private void Save_Click(object sender, EventArgs e)
        {
            Resturant rest = new Resturant(NameText.Text, AddressText.Text, PhoneNumberText.Text, ZipCodeText.Text, RatingText.Text, ReviewText.Text);

            if (!listOfRestruants.Contains(rest))
            {
                listOfRestruants.Add(rest);
            }
            else
            {
                listOfRestruants.Add(rest);
            }
            NameText.Clear();
            AddressText.Clear();
            ZipCodeText.Clear();
            PhoneNumberText.Clear();
            RatingText.Clear();
            ReviewText.Clear();
        }
예제 #14
0
        void ReleaseDesignerOutlets()
        {
            if (AddressLabel != null)
            {
                AddressLabel.Dispose();
                AddressLabel = null;
            }

            if (AddressText != null)
            {
                AddressText.Dispose();
                AddressText = null;
            }

            if (CancelButton != null)
            {
                CancelButton.Dispose();
                CancelButton = null;
            }

            if (CredentialsTab != null)
            {
                CredentialsTab.Dispose();
                CredentialsTab = null;
            }

            if (FinishButton != null)
            {
                FinishButton.Dispose();
                FinishButton = null;
            }

            if (FolderTab != null)
            {
                FolderTab.Dispose();
                FolderTab = null;
            }

            if (Header != null)
            {
                Header.Dispose();
                Header = null;
            }

            if (LoginStatusLabel != null)
            {
                LoginStatusLabel.Dispose();
                LoginStatusLabel = null;
            }

            if (LoginStatusProgress != null)
            {
                LoginStatusProgress.Dispose();
                LoginStatusProgress = null;
            }

            if (Outline != null)
            {
                Outline.Dispose();
                Outline = null;
            }

            if (PasswordLabel != null)
            {
                PasswordLabel.Dispose();
                PasswordLabel = null;
            }

            if (PasswordText != null)
            {
                PasswordText.Dispose();
                PasswordText = null;
            }

            if (SideSplashView != null)
            {
                SideSplashView.Dispose();
                SideSplashView = null;
            }

            if (TabView != null)
            {
                TabView.Dispose();
                TabView = null;
            }

            if (UserLabel != null)
            {
                UserLabel.Dispose();
                UserLabel = null;
            }

            if (UserText != null)
            {
                UserText.Dispose();
                UserText = null;
            }
        }
예제 #15
0
 public async Task <IEnumerable <SuggesionAddress> > GetPlacesSuggestions([FromBody] AddressText model)
 {
     return(await _hereService.GetPlacesSuggestion(model?.Text));
 }
예제 #16
0
        public async Task <IEnumerable <SuggesionAddress> > GetSuggestions([FromBody] AddressText model)
        {
            var suggestions = await Task.WhenAll(_hereService.GetSuggestions(model?.Text), _hereService.GetPlacesSuggestion(model?.Text));

            return(suggestions[0].Concat(suggestions[1]));
        }
예제 #17
0
 public async Task <IEnumerable <SuggesionAddress> > GetSuggestionsWithCoordinates([FromBody] AddressText model)
 {
     return(await _hereService.GetSuggestionsWithCoordinates(model?.Text));
 }
예제 #18
0
        void ReleaseDesignerOutlets()
        {
            if (AddressHelp != null)
            {
                AddressHelp.Dispose();
                AddressHelp = null;
            }

            if (AddressLabel != null)
            {
                AddressLabel.Dispose();
                AddressLabel = null;
            }

            if (AddressText != null)
            {
                AddressText.Dispose();
                AddressText = null;
            }

            if (CancelButton != null)
            {
                CancelButton.Dispose();
                CancelButton = null;
            }

            if (ContinueButton != null)
            {
                ContinueButton.Dispose();
                ContinueButton = null;
            }

            if (PasswordLabel != null)
            {
                PasswordLabel.Dispose();
                PasswordLabel = null;
            }

            if (PasswordText != null)
            {
                PasswordText.Dispose();
                PasswordText = null;
            }

            if (UserLabel != null)
            {
                UserLabel.Dispose();
                UserLabel = null;
            }

            if (UserText != null)
            {
                UserText.Dispose();
                UserText = null;
            }

            if (WarnText != null)
            {
                WarnText.Dispose();
                WarnText = null;
            }

            if (LoginProgress != null)
            {
                LoginProgress.Dispose();
                LoginProgress = null;
            }
        }
예제 #19
0
		void ReleaseDesignerOutlets ()
		{
			if (AddressLabel != null) {
				AddressLabel.Dispose ();
				AddressLabel = null;
			}

			if (AddressText != null) {
				AddressText.Dispose ();
				AddressText = null;
			}

			if (CancelButton != null) {
				CancelButton.Dispose ();
				CancelButton = null;
			}

			if (PasswordLabel != null) {
				PasswordLabel.Dispose ();
				PasswordLabel = null;
			}

			if (PasswordText != null) {
				PasswordText.Dispose ();
				PasswordText = null;
			}

			if (SaveButton != null) {
				SaveButton.Dispose ();
				SaveButton = null;
			}

			if (Slider != null) {
				Slider.Dispose ();
				Slider = null;
			}

			if (SliderLabel != null) {
				SliderLabel.Dispose ();
				SliderLabel = null;
			}

			if (SliderValueLabel != null) {
				SliderValueLabel.Dispose ();
				SliderValueLabel = null;
			}

			if (SliderMaxLabel != null) {
				SliderMaxLabel.Dispose ();
				SliderMaxLabel = null;
			}

			if (SliderMinLabel != null) {
				SliderMinLabel.Dispose ();
				SliderMinLabel = null;
			}

			if (StartupCheckbox != null) {
				StartupCheckbox.Dispose ();
				StartupCheckbox = null;
			}

			if (UserLabel != null) {
				UserLabel.Dispose ();
				UserLabel = null;
			}

			if (UserText != null) {
				UserText.Dispose ();
				UserText = null;
			}
		}
 /// <summary>
 /// Sets the Address
 /// </summary>
 /// <param name="address">the address</param>
 public void SetAddress(string address)
 {
     AddressText.Wait(2).Clear();
     AddressText.Wait(2).SendKeys(address);
 }