private UIToolbar CreateToolbar() { var toolbar = new UIToolbar(new CGRect(0, 0, 320, 44)); var done = new UIBarButtonItem("OK", UIBarButtonItemStyle.Bordered, (sender, e) => { CurrencyTextField.ResignFirstResponder(); }) { TintColor = MyTrainsColors.AccentColor }; toolbar.SetItems(new[] { done }, false); return(toolbar); }
void ReleaseDesignerOutlets() { if (AboutTextView != null) { AboutTextView.Dispose(); AboutTextView = null; } if (CurrencyTextField != null) { CurrencyTextField.Dispose(); CurrencyTextField = null; } if (testTextView != null) { testTextView.Dispose(); testTextView = null; } if (VisitSiteButton != null) { VisitSiteButton.Dispose(); VisitSiteButton = null; } }
void ReleaseDesignerOutlets() { if (AmountTextField != null) { AmountTextField.Dispose(); AmountTextField = null; } if (ClientIdTextField != null) { ClientIdTextField.Dispose(); ClientIdTextField = null; } if (CreateReportButton != null) { CreateReportButton.Dispose(); CreateReportButton = null; } if (CurrencyTextField != null) { CurrencyTextField.Dispose(); CurrencyTextField = null; } if (DateTextField != null) { DateTextField.Dispose(); DateTextField = null; } if (ExpenseTypeCollapseButton != null) { ExpenseTypeCollapseButton.Dispose(); ExpenseTypeCollapseButton = null; } if (ExpenseTypeExpandButton != null) { ExpenseTypeExpandButton.Dispose(); ExpenseTypeExpandButton = null; } if (ExpenseTypePicker != null) { ExpenseTypePicker.Dispose(); ExpenseTypePicker = null; } if (ImageButton != null) { ImageButton.Dispose(); ImageButton = null; } if (LoginButton != null) { LoginButton.Dispose(); LoginButton = null; } if (LoginIdTextField != null) { LoginIdTextField.Dispose(); LoginIdTextField = null; } if (MyMainView != null) { MyMainView.Dispose(); MyMainView = null; } if (PasswordTextField != null) { PasswordTextField.Dispose(); PasswordTextField = null; } if (PaymentTypeCollapseButton != null) { PaymentTypeCollapseButton.Dispose(); PaymentTypeCollapseButton = null; } if (PaymentTypeExpandButton != null) { PaymentTypeExpandButton.Dispose(); PaymentTypeExpandButton = null; } if (PaymentTypePicker != null) { PaymentTypePicker.Dispose(); PaymentTypePicker = null; } if (ReceiptImageTextField != null) { ReceiptImageTextField.Dispose(); ReceiptImageTextField = null; } if (ReportNameLabel != null) { ReportNameLabel.Dispose(); ReportNameLabel = null; } if (ReportNameTextField != null) { ReportNameTextField.Dispose(); ReportNameTextField = null; } if (StatusLabel != null) { StatusLabel.Dispose(); StatusLabel = null; } if (VendorLabel != null) { VendorLabel.Dispose(); VendorLabel = null; } if (VendorTextField != null) { VendorTextField.Dispose(); VendorTextField = null; } }