void ReleaseDesignerOutlets() { if (AminOrdersTable != null) { AminOrdersTable.Dispose(); AminOrdersTable = null; } if (viewUnpaidButton != null) { viewUnpaidButton.Dispose(); viewUnpaidButton = null; } }
void PopulateTable() { if (orderItems != null) { Source = new TableSourceAdmin(AdminGetOrders); } else { Debug.WriteLine("Order items is null"); } AminOrdersTable.Source = Source; AminOrdersTable.ReloadData(); }