示例#1
0
 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();
 }
示例#2
0
 private void btmCreate_Click(object sender, RoutedEventArgs e)
 {
     if (CheckControls.VerifyIfTextboxIsNull(this.txtName))
     {
         Close();
     }
     Classes.ServiceClass.Create(this.txtName.Text);
     CheckControls.ClearTextBox(ref txtName);
 }
示例#3
0
 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 :;
 }
示例#4
0
 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);
 }
示例#5
0
        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 :;
        }
示例#6
0
        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 :;
        }
示例#7
0
 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;
     }
 }
示例#8
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)
            {
            }
        }
示例#9
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 :;
        }
示例#10
0
        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();
        }
示例#11
0
        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 :;
        }
示例#12
0
        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();
            }
        }
示例#13
0
 private void btnClear_Click(object sender, RoutedEventArgs e)
 {
     CheckControls.ClearTextBox(ref txtName);
 }
示例#14
0
 private void btnCLEAR_Click(object sender, RoutedEventArgs e)
 {
     CheckControls.ClearTextBox(ref this.txtName, ref this.txtNotes);
 }
示例#15
0
 public void DeleteTxt()
 {
     CheckControls.ClearTextBox(ref this.txtName, ref this.txtAddress, ref txtPostal, ref txtPhone);
     CheckControls.ClearTextBox(ref this.txtEmail, ref this.txtFAX);
 }
示例#16
0
 public void DeleteTxt()
 {
     CheckControls.ClearTextBox(ref this.txtName, ref this.txtPrice, ref txtDesc, ref txtIVU);
     CheckControls.ClearTextBox(ref txtCost);
 }
示例#17
0
 public void DeleteTxt()
 {
     CheckControls.ClearTextBox(ref this.txtqty, ref this.txtEditQty);
 }