Example #1
0
        private void GotoEditCharity_Click(object sender, RoutedEventArgs e)
        {
            EditCharity editCharity = new EditCharity();

            editCharity.Show();
            this.Close();
        }
Example #2
0
        private void GotoEditCharity_Click(object sender, RoutedEventArgs e)
        {
            var rows = (Charity)dgUsers.SelectedItem;

            CharityClass.CharityId = context.Charity.Where(i => i.CharityName == rows.CharityName).Select(i => i.CharityId).First();

            EditCharity editCharity = new EditCharity();

            editCharity.NameOrganization.Text = rows.CharityName;
            editCharity.Opisanie.Text         = rows.CharityDescription;
            editCharity.PathToFoto.Text       = rows.CharityLogo;

            editCharity.Show();
            this.Close();
        }