void ReleaseDesignerOutlets() { if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (DoneSwich != null) { DoneSwich.Dispose(); DoneSwich = null; } if (ffff != null) { ffff.Dispose(); ffff = null; } if (NameField != null) { NameField.Dispose(); NameField = null; } if (ordername != null) { ordername.Dispose(); ordername = null; } if (OrderNamePicker != null) { OrderNamePicker.Dispose(); OrderNamePicker = null; } if (OrderTableView != null) { OrderTableView.Dispose(); OrderTableView = null; } if (SaveButton != null) { SaveButton.Dispose(); SaveButton = null; } }
public async override void ViewDidLoad() { try { orders = await OrderController.GetInstance(); OrdersSource source = new OrdersSource(orders.ListOfOrders); OrderTableView.Source = source; OrderTableView.ReloadData(); ActivityIndicator.StopAnimating(); this.RefreshControl = new UIRefreshControl(); this.RefreshControl.ValueChanged += (sender, e) => { this.RefreshControl.BeginRefreshing(); OrderTableView.ReloadData(); this.RefreshControl.EndRefreshing(); }; } catch { ActivityIndicator.StopAnimating(); PresentViewController(GetAlertsClass.GetAlert("Не удалось подключиться к серверу"), true, null); } }
void ReleaseDesignerOutlets() { if (DeleteButton != null) { DeleteButton.Dispose(); DeleteButton = null; } if (DensityField != null) { DensityField.Dispose(); DensityField = null; } if (DoneSwich != null) { DoneSwich.Dispose(); DoneSwich = null; } if (FlipNOField != null) { FlipNOField.Dispose(); FlipNOField = null; } if (fuelViewCell != null) { fuelViewCell.Dispose(); fuelViewCell = null; } if (KilosField != null) { KilosField.Dispose(); KilosField = null; } if (LiterField != null) { LiterField.Dispose(); LiterField = null; } if (OrderNamePicker != null) { OrderNamePicker.Dispose(); OrderNamePicker = null; } if (OrderTableView != null) { OrderTableView.Dispose(); OrderTableView = null; } if (SaveButton != null) { SaveButton.Dispose(); SaveButton = null; } }