Ejemplo n.º 1
0
        private void cmdPaymentAdd_Click(object sender, RoutedEventArgs e)
        {
            WinAddEditPaymentCriteria w = new WinAddEditPaymentCriteria(vw);

            w.Caption = (String)(sender as Button).Content + " " + CLanguage.getValue("payment_criteria");
            w.Mode    = "A";
            w.ShowDialog();
            if (w.HasModified)
            {
                vw.CalculatePaymentTotal();
                vw.IsModified = true;
            }
        }
Ejemplo n.º 2
0
        private void ShowPaymentEditWindow()
        {
            WinAddEditPaymentCriteria w = new WinAddEditPaymentCriteria(vw);

            w.ViewData = (MPaymentCriteria)currentViewObj;
            w.Caption  = CLanguage.getValue("ADMIN_EDIT") + " " + CLanguage.getValue("payment_criteria");
            w.Mode     = "E";
            w.ShowDialog();

            if (w.HasModified)
            {
                vw.CalculatePaymentTotal();
                vw.IsModified = true;
            }
        }