示例#1
0
        private void btnAddFund_Click(object sender, RoutedEventArgs e)
        {
            stpMisc.Visibility = Visibility.Visible;
            FundTypesUC fuc = new FundTypesUC();

            stpMisc.Children.Add(fuc);
            Misc.Visibility        = Visibility.Collapsed;
            fuc.SaveButtonClick   += Fuc_SaveButtonClick;
            fuc.CancelButtonClick += Fuc_CancelButtonClick;
        }
示例#2
0
        private void btnEditFund_Click(object sender, RoutedEventArgs e)
        {
            FundTypes ft = grdFundtype.SelectedItem as FundTypes;

            if (ft != null)
            {
                stpMisc.Visibility = Visibility.Visible;
                FundTypesUC fuc = new FundTypesUC(ft);
                stpMisc.Children.Add(fuc);
                Misc.Visibility        = Visibility.Collapsed;
                fuc.SaveButtonClick   += Fuc_SaveButtonClick;
                fuc.CancelButtonClick += Fuc_CancelButtonClick;
            }
            else
            {
                MessageBox.Show("Please select Fund type to Edit");
            }
        }