Пример #1
0
        public DataGridPage()
        {
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, true);
            viewModel      = new DataGridViewModel();
            BindingContext = viewModel;

            var list       = DataSource.GetOrders();
            var headerList = GetHeader(list);

            GridView grid = new GridView()
            {
                NumColumns    = 1,
                ScrollToEnd   = true,
                ColumnSpacing = 0,
                RowSpacing    = 1
            };

            slView.Children.Add(new DataGridHeaderView(headerList).getRootView());
            slView.Children.Add(grid);

            adapter          = new DataGridAdapter(list);
            grid.ItemTapped += Handle_TapEvent;
            grid.ItemSource  = adapter;

            //viewModel.IsVisible = true;
        }
Пример #2
0
 public void DataGridAdapterFiles_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e)
 {
     CmsWebDirectory d = CmsContext.Current.RootDirectory;
     DataGridAdapterFiles.DataSource = d.FindDeletedFiles();
 }
Пример #3
0
 public void DataGridAdapterFiles_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e)
 {
     CmsHttpContext.Current.Mode = CmsMode.Unpublished;
     DataGridAdapterFiles.DataSource = CmsFile.FindByDirectoryID(CurrentDirectory.ID, true);
 }
Пример #4
0
 /// <summary>
 /// Initializes a new adapter with given properties.
 /// </summary>
 public void InitAdapter(IDbConnection conn, IDbDataAdapter da, DbCommandBuilder builder) {
     Adapter = new DataGridAdapter(this, conn, da, builder);
 }
Пример #5
0
 public void DataGridAdapterFiles_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e)
 {
     CmsWebDirectory d = CmsContext.Current.RootDirectory;
     DataGridAdapterFiles.DataSource = d.SearchFiles(TextBoxText.Text);
 }
Пример #6
0
 public void DataGridAdapterResources_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e)
 {
     DataGridAdapterResources.DataSource = CmsResource.FindAll();
 }
 public void DataGridAdapterFiles_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e)
 {
     DataGridAdapterFiles.DataSource = CmsFile.FindByDirectoryID(CurrentDirectory.ID, true);
 }
Пример #8
0
 protected void DataGridAdapterUsers_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e)
 {
     DataGridAdapterUsers.DataSource = Membership.GetAllUsers();
 }
Пример #9
0
 public void DataGridAdapterAuditLog_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e)
 {
     DataGridAdapterAuditLog.DataSource = LogEntry.FindByUser(UserID, 30);
     DataGridAdapterAuditLog.DataBind();
 }
Пример #10
0
 public void DataGridAdapterPermissions_DataGridBinding(DataGridAdapter sender, DataGridBindingEventArgs e)
 {
     DataGridAdapterPermissions.DataSource = Permissions.FindAllPermissions();
 }