Exemplo n.º 1
0
        //private void Page5Button_Click(object sender, RoutedEventArgs e)
        //{
        //	testwin tw = new testwin();
        //	tw.Show();
        //}
        private void Page5Button_Click(object sender, RoutedEventArgs e)
        {
            if (tw != null)
            {
                tw.BringIntoView();
                return;
            }

            tw = new SqlDbViewer(-1);
            tw.Show();
        }
Exemplo n.º 2
0
 private void Page5_Click(object sender, RoutedEventArgs e)
 {
     //			testwin tw = new testwin();
     //			tw.Show();
     if (tw != null)
     {
         tw.BringIntoView();
         return;
     }
     tw = new SqlDbViewer(-1);
     tw.Show();
 }
Exemplo n.º 3
0
        public void OnViewerLoaded(SqlDbViewer sqlv)
        {
            //Window is fully loaded, so we can go ahead and load the datagrids etc.
            OnWindowLoaded(null, null);
            this.Show();
            sqlv.BringIntoView();

            // We should start by loading The data - ending up  with it in  the OC ready for use.
            CustomerViewModel.LoadCustomersTask();
            CustomerViewModel.LoadCustomersIntoList();
            CustomerViewModel.LoadCustomerObsCollection();
//				CustomerViewModel.
            //finally  we should assign the data to the grid (x.ItemsSource=OC)
            sqlv.ShowCust_Click(null, null);
        }