private void btnClear_Click(object sender, RoutedEventArgs e) { CheckControls.ClearTextBox(ref this.txtName, ref this.txtNotes); IISM.MF_Forms.OfferClass.OffClass_Edit OpenW = new IISM.MF_Forms.OfferClass.OffClass_Edit(); OpenW.Show(); this.Close(); }
private void btmCreate_Click(object sender, RoutedEventArgs e) { if (CheckControls.VerifyIfTextboxIsNull(this.txtName)) { Close(); } Classes.ServiceClass.Create(this.txtName.Text); CheckControls.ClearTextBox(ref txtName); }
private void btmCreate_Click(object sender, RoutedEventArgs e) { if (CheckControls.VerifyIfTextboxIsNull(txtName)) { goto Exit; } Classes.ProductCategory.Create(this.txtName.Text); CheckControls.ClearTextBox(ref txtName); Exit :; }
private void btmCreate_Click(object sender, RoutedEventArgs e) { if (CheckControls.VerifyIfTextboxIsNull(txtName, txtNotes)) { MessageBox.Show("Please, fill all Textboxes!", "Atention", MessageBoxButton.OK, MessageBoxImage.Information); Close(); } OfferClass_.Create(this.txtName.Text, txtNotes.Text); CheckControls.ClearTextBox(ref txtName, ref txtNotes); }
private void btmCreate_Click(object sender, RoutedEventArgs e) { if (string.IsNullOrEmpty(this.txtName.Text) || string.IsNullOrEmpty(this.txtComments.Text)) { MessageBox.Show("Please, fill all Textboxes!", "Atention", MessageBoxButton.OK, MessageBoxImage.Information); goto Exit; } WorkWithMF_Warehouse.CreateWH(this.txtName.Text, this.txtComments.Text); CheckControls.ClearTextBox(ref txtName, ref txtComments); Exit :; }
private void btmCreate_Click(object sender, RoutedEventArgs e) { if (CheckControls.VerifyIfTextboxIsNull(txtName)) { MessageBox.Show("Please, fill all Textboxes!", "Atention", MessageBoxButton.OK, MessageBoxImage.Information); goto ExitInstruction; } WorkWithMF_BussinessType.Create(this.txtName.Text); CheckControls.ClearTextBox(ref txtName); ExitInstruction :; }
private void cmbID_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { ID = Convert.ToInt32(cmbID.SelectedValue.ToString()); CheckControls.ClearTextBox(ref this.txtName, ref this.txtComments); WorkWithMF_Warehouse.LoadWarehouseId(ID, ref this.txtName, ref txtComments); } catch (Exception) { ID = 0; } }
private void cmbID_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { ID = Convert.ToInt32(cmbID.SelectedValue.ToString()); CheckControls.ClearTextBox(ref this.txtName); if (Classes.ProductCategory.LoadWindow(ID, ref this.txtName)) { MessageBox.Show("Error, please try again.", "Error", MessageBoxButton.OK, MessageBoxImage.Error); } } catch (Exception) { } }
private void btmDone_Click(object sender, RoutedEventArgs e) { if (CheckControls.VerifyIfTextboxIsNull(this.txtName)) { goto Exit; } if (WorkWithMF_BussinessType.EditBussinessType(ID, this.txtName)) { goto Exit; } CheckControls.ClearTextBox(ref this.txtName); ResetData(); Exit :; }
private void btmDone_Click(object sender, RoutedEventArgs e) { if (CheckControls.VerifyIfTextboxIsNull(this.txtName)) { this.Close(); } if (OfferClass_.Edit(ID, this.txtName, txtNotes)) { this.Close(); } CheckControls.ClearTextBox(ref this.txtName, ref this.txtNotes); IISM.MF_Forms.OfferClass.OffClass_Edit OpenW = new IISM.MF_Forms.OfferClass.OffClass_Edit(); OpenW.Show(); this.Close(); }
private void btmDone_Click(object sender, RoutedEventArgs e) { if (CheckControls.VerifyIfTextboxIsNull(this.txtName)) { goto Exit; } if (Classes.ProductCategory.Edit(ID, this.txtName)) { goto Exit; } CheckControls.ClearTextBox(ref this.txtName); ResetControls(); Exit :; }
private void cmbID_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { ID = Convert.ToInt32(cmbID.SelectedValue.ToString()); CheckControls.ClearTextBox(ref this.txtName); if (WorkWithMF_BussinessType.LoadBSTypeId(ID, ref this.txtName)) { this.Close(); } } catch (Exception) { //MessageBox.Show("Error, please try again.", "Error", MessageBoxButton.OK, MessageBoxImage.Error); //this.Close(); } }
private void btnClear_Click(object sender, RoutedEventArgs e) { CheckControls.ClearTextBox(ref txtName); }
private void btnCLEAR_Click(object sender, RoutedEventArgs e) { CheckControls.ClearTextBox(ref this.txtName, ref this.txtNotes); }
public void DeleteTxt() { CheckControls.ClearTextBox(ref this.txtName, ref this.txtAddress, ref txtPostal, ref txtPhone); CheckControls.ClearTextBox(ref this.txtEmail, ref this.txtFAX); }
public void DeleteTxt() { CheckControls.ClearTextBox(ref this.txtName, ref this.txtPrice, ref txtDesc, ref txtIVU); CheckControls.ClearTextBox(ref txtCost); }
public void DeleteTxt() { CheckControls.ClearTextBox(ref this.txtqty, ref this.txtEditQty); }