Exemplo n.º 1
0
        private void buttonAnalytics_Click(object sender, RoutedEventArgs e)
        {
            Partners partners = new Partners();

            partners.Show();
            //partners.DataContext
            //this.Close();
        }
Exemplo n.º 2
0
// events

        // Partners
        private void buttonPartners_Click(object sender, RoutedEventArgs e) // get partner
        {
            PartnerViewModel _p_view_model = new PartnerViewModel();
            Partners         PartnerForm   = new Partners {
                DataContext = _p_view_model
            };;

            PartnerForm.ShowDialog();

            if (PartnerForm.DialogResult == true)
            {
                MessageBox.Show(_p_view_model.SelectedPartner.Name);
            }
        }