Beispiel #1
0
        private void btCalculate_Click(object sender, RoutedEventArgs e)
        {

            if (!string.IsNullOrEmpty(txtSalaryItemName.Text))
            {
                form = new CalculateFormula(txtSalaryItemName.Text, txtCalculateFormula.Text, txtCalculateCode.Text, txtMoney.Text);
                form.RefreshedHandler += new EventHandler(form_RefreshedHandler);
                EntityBrowser browser = new EntityBrowser(form);
                //browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                form.MinHeight = 500;
                browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("STRINGNOTNULL", "SALARYITEMNAME"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("STRINGNOTNULL", "SALARYITEMNAME"));
            }
        }