// public event System.Windows.Forms.MouseEventHandler MouseClick;
 public ClientBISmapUserControl(addDisViewModel addDisViewModel)
 {
     InitializeComponent();
     this.addDisViewModel = addDisViewModel;
     listSelectedClients  = new List <Client>();
     listView.ItemsSource = addDisViewModel.GetAllClients();
     myvm        = new ClientViewModel(this, page);
     DataContext = myvm;
 }
Ejemplo n.º 2
0
 // public event System.Windows.Forms.MouseEventHandler MouseClick;
 public Window1(addDisViewModel addDisViewModel)
 {
     InitializeComponent();
     this.addDisViewModel = addDisViewModel;
     DALimp test = new DALimp();
     listSelectedClients = new List<Client>();
     listView.ItemsSource = test.GetAllClients();
     myvm = new ListViewModel(this);
      DataContext = myvm;
 }
        // public event System.Windows.Forms.MouseEventHandler MouseClick;
        public KmeansView(Window1 win, addDisViewModel addDisViewModel)
        {
            InitializeComponent();
            this.win             = win;
            this.addDisViewModel = addDisViewModel;

            listSelectedClients = new List <Client>();

            myvm             = new KmeansViewModel(this);
            this.DataContext = myvm;
            myvm.KMeans();
        }
Ejemplo n.º 4
0
        public AddDis(addDisViewModel addDisViewModel)
        {
            InitializeComponent();
            this.ListDM.ItemsSource = myvm.GetAllDeliveryMen().Select(m => m.ID);
            del = new DeliveryMen();
            dis = new Distribution();
            dater.SelectedDate = new DateTime(2020, 09, 30);



            this.dataGrid.DataContext = dis;
            myvm = addDisViewModel;
            this.buttonGrid.DataContext = myvm;
            this.checkGrid.DataContext  = myvm;
        }
Ejemplo n.º 5
0
        public AddDis()
        {
            InitializeComponent();

            del  = new DeliveryMen();
            myvm = new addDisViewModel(this, page);
            this.ListDM.ItemsSource = myvm.GetAllDeliveryMen().Select(m => m.ID);

            dis = new Distribution();
            dater.SelectedDate = DateTime.Today;


            this.dataGrid.DataContext = dis;

            this.buttonGrid.DataContext = myvm;
            this.checkGrid.DataContext  = myvm;
        }