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 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 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, this.txtComments)) { goto Exit; } if (WorkWithMF_Warehouse.EditWarehouse(ID, this.txtName, this.txtComments)) { goto Exit; } ResetControls(); 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 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 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 :; }
public bool AllComboBoxFilled() { if (CheckControls.VerifyIfTextboxIsNull(this.txtqty, this.txtEditQty)) { return(true); } try { if (ProdId <= 0) { return(true); } } catch (Exception) { return(true); } try { if (Whid <= 0) { return(true); } } catch (Exception) { return(true); } if ((CheckControls.IsNumeric(txtEditQty.Text)) && (CheckControls.IsNumeric(txtqty.Text))) { } else { return(true); } return(false); }
public bool AllComboBoxFilled() { if (CheckControls.VerifyIfTextboxIsNull(this.txtName, this.txtAddress, txtPostal, txtPhone)) { return(true); } if (CheckControls.VerifyIfTextboxIsNull(this.txtEmail, this.txtFAX)) { return(true); } try { if (BsID <= 0) { return(true); } } catch (Exception) { return(true); } if (!(GlobalVar.CreateMFAction)) { try { if (CorpID <= 0) { return(true); } } catch (Exception) { return(true); } } return(false); }
private void btnCLEAR_Click(object sender, RoutedEventArgs e) { CheckControls.ClearTextBox(ref this.txtName, ref this.txtNotes); }
private void btnClear_Click(object sender, RoutedEventArgs e) { CheckControls.ClearTextBox(ref txtName); }
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); }
public bool AllComboBoxFilled() { if (CheckControls.VerifyIfTextboxIsNull(this.txtName, this.txtPrice, txtDesc, txtIVU)) { return(true); } if (CheckControls.VerifyIfTextboxIsNull(this.txtCost)) { return(true); } if (!(GlobalVar.CreateMFAction)) //Edit { try { if (ProdId <= 0) { return(true); } } catch (Exception) { return(true); } try { if (CatID <= 0) { return(true); } } catch (Exception) { return(true); } } else //Create { try { if (CatID <= 0) { return(true); } } catch (Exception) { return(true); } } if ((CheckControls.IsNumeric(txtPrice.Text)) && (CheckControls.IsNumeric(txtIVU.Text)) && (CheckControls.IsNumeric(txtCost.Text))) { } else { return(true); } return(false); }