private void cmdAddProduct_Click(object sender, RoutedEventArgs e)
        {
            WinAddEditMiscItemComplex w = new WinAddEditMiscItemComplex();

            w.Caption    = (String)(sender as Button).Content + " " + getCaptionKey();
            w.Mode       = "A";
            w.ParentView = (vw as MAccountDoc);
            w.ShowDialog();
            if (w.HasModified)
            {
                vw.CalculateExtraFields();
                vw.IsModified = true;
            }
        }
        private void ShowEditWindow()
        {
            WinAddEditMiscItemComplex w = new WinAddEditMiscItemComplex();

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

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