Ejemplo n.º 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var user            = this.user.Text;
            var employeeAccount = this.employeeAccount.Text;
            var pwd             = this.pwd.Text;
            var code            = this.code.Text;

            LoginApi.Login(user, employeeAccount, pwd, code);

            Thread.Sleep(1000);

            ViewModels.ViewModelLoctor.CallNumberViewModel.AddTableModels(TableStatusApi.TableQuery <ObservableCollection <TableModel> >());
        }
Ejemplo n.º 2
0
        public static ObservableCollection <TableModel> TableQuery()
        {
            var status = ViewModels.ViewModelLoctor.CallNumberViewModel.IsSelectedAllTables ? "0" : ViewModels.ViewModelLoctor.CallNumberViewModel.IsSelectedEmptyAllTables ? "1" : "11";

            return(TableStatusApi.TableQuery <ObservableCollection <TableModel> >(status));
        }