void ReleaseDesignerOutlets() { if (IBCancelBtn != null) { IBCancelBtn.Dispose(); IBCancelBtn = null; } if (IBCancelWidth != null) { IBCancelWidth.Dispose(); IBCancelWidth = null; } if (IBContntTbl != null) { IBContntTbl.Dispose(); IBContntTbl = null; } if (IBSearchBar != null) { IBSearchBar.Dispose(); IBSearchBar = null; } }
/// <summary> /// Configures the view. /// </summary> void ConfigureView() { this.EdgesForExtendedLayout = UIRectEdge.None; var menuBtn = new UIBarButtonItem(UIImage.FromBundle("Menu"), UIBarButtonItemStyle.Plain, MenuClicked); this.NavigationItem.LeftBarButtonItem = menuBtn; IBContntTbl.RegisterNibForCellReuse(OrderListCell.Nib, OrderListCell.Key); IBContntTbl.TableFooterView = new UIView(); IBContntTbl.EstimatedRowHeight = HeightConstants.CellHeight70; this.NavigationItem.Title = IosUtils.LocalizedString.sharedInstance.GetLocalizedString("Order", ""); this.NavigationItem.BackBarButtonItem = new UIBarButtonItem("", UIBarButtonItemStyle.Plain, null, null); var createBtn = new UIBarButtonItem(UIImage.FromBundle("Add"), UIBarButtonItemStyle.Plain, AddClicked); this.NavigationItem.RightBarButtonItem = createBtn; IBDatePicker.Mode = UIDatePickerMode.Date; IBStartDateTxt.InputView = IBDatePicker; IBStartDateTxt.InputAccessoryView = IBDateDoneBar; IBEndDateTxt.InputView = IBDatePicker; IBEndDateTxt.InputAccessoryView = IBDateDoneBar; SetupLanguageString(); }
void GetLaguageStrings() { SectionTitle.Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("LSMailTitle", "")); SectionTitle.Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("LSCalendar", "")); SectionTitle.Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("Order", "")); SectionTitle.Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("Notes", "")); SectionTitle.Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("Logout", "")); RowsTitle[0].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("LSInbox", "")); RowsImgs[0].Add(UIImage.FromBundle("Inbox")); RowsTitle[0].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("LSDrafts", "")); RowsImgs[0].Add(UIImage.FromBundle("Drafts")); RowsTitle[0].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("LSSent", "")); RowsImgs[0].Add(UIImage.FromBundle("Sent")); RowsTitle[0].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("LSTrash", "")); RowsImgs[0].Add(UIImage.FromBundle("Trash")); RowsTitle[1].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("List", "")); RowsImgs[1].Add(UIImage.FromBundle("Calendar")); RowsTitle[1].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("Add", "")); RowsImgs[1].Add(UIImage.FromBundle("CalendarAdd")); RowsTitle[2].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("View Order", "")); RowsImgs[2].Add(UIImage.FromBundle("Orders")); RowsTitle[2].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("Amend Order", "")); RowsImgs[2].Add(UIImage.FromBundle("OrderAmend")); RowsTitle[2].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("Create Order", "")); RowsImgs[2].Add(UIImage.FromBundle("OrderAdd")); RowsTitle[2].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("Convert Order", "")); RowsImgs[2].Add(UIImage.FromBundle("OrderConvert")); RowsTitle[2].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("Delete Order", "")); RowsImgs[2].Add(UIImage.FromBundle("Trash")); RowsTitle[3].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("View Notes", "")); RowsImgs[3].Add(UIImage.FromBundle("Notes")); RowsTitle[3].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("Amend Notes", "")); RowsImgs[3].Add(UIImage.FromBundle("NotesAmend")); RowsTitle[3].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("Create Notes", "")); RowsImgs[3].Add(UIImage.FromBundle("NotesAdd")); RowsTitle[3].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("Delete Notes", "")); RowsImgs[3].Add(UIImage.FromBundle("NotesDelete")); RowsTitle[4].Add(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("Log Out", "")); RowsImgs[4].Add(UIImage.FromBundle("Logout")); IBContntTbl.ReloadData(); }
void ReleaseDesignerOutlets() { if (IBContntTbl != null) { IBContntTbl.Dispose(); IBContntTbl = null; } if (IBMailAddLbl != null) { IBMailAddLbl.Dispose(); IBMailAddLbl = null; } if (IBNameLbl != null) { IBNameLbl.Dispose(); IBNameLbl = null; } if (IBProfileImg != null) { IBProfileImg.Dispose(); IBProfileImg = null; } if (IBProfileVw != null) { IBProfileVw.Dispose(); IBProfileVw = null; } }
/// <summary> /// Configures the view. /// </summary> void ConfigureView() { this.EdgesForExtendedLayout = UIRectEdge.None; this.NavigationItem.Title = IosUtils.LocalizedString.sharedInstance.GetLocalizedString("LSCalendar", ""); var menuBtn = new UIBarButtonItem(UIImage.FromBundle("Menu"), UIBarButtonItemStyle.Plain, MenuClicked); this.NavigationItem.LeftBarButtonItem = menuBtn; IBContntTbl.RegisterNibForCellReuse(NotesCell.Nib, NotesCell.Key); IBContntTbl.TableFooterView = new UIView(); IBContntTbl.EstimatedRowHeight = 50; IBAssignedToTxt.InputView = IBAssignedToPicker; IBAssignedToTxt.InputAccessoryView = IBAssignedDoneBar; this.NavigationItem.BackBarButtonItem = new UIBarButtonItem("", UIBarButtonItemStyle.Plain, null, null); var createBtn = new UIBarButtonItem(UIImage.FromBundle("Add"), UIBarButtonItemStyle.Plain, EditClicked); this.NavigationItem.RightBarButtonItem = createBtn; IBDateTimePicker.Mode = UIDatePickerMode.Date; IBFromDateTxt.InputView = IBDateTimePicker; IBFromDateTxt.InputAccessoryView = IBDateTimeDoneBar; IBToDateTxt.InputView = IBDateTimePicker; IBToDateTxt.InputAccessoryView = IBDateTimeDoneBar; SetupLanguageString(); }
public async void getEvents() { try { if (IosUtils.IosUtility.IsReachable()) { IosUtils.IosUtility.showProgressHud(""); var res = await WebServiceMethods.GetCalendarEvents(selectedUser.UserID, SelectedTypes, StartDate.ToString(Utils.Utilities.CALENDAR_DATE_FORMAT), EndDate.ToString(Utils.Utilities.CALENDAR_DATE_FORMAT) ); if (res != null && res.Count > 0) { Events = res; IBEmptyLbl.Hidden = true; IBContntTbl.Hidden = false; IBContntTbl.ReloadData(); } else { IBEmptyLbl.Hidden = false; IBContntTbl.Hidden = true; } IosUtils.IosUtility.hideProgressHud(); } } catch (Exception e) { IosUtils.IosUtility.hideProgressHud(); } }
public override void ViewDidAppear(bool animated) { base.ViewDidAppear(animated); if (isfirstTime) { configureView(); isfirstTime = false; } IBContntTbl.ReloadData(); }
public void RowSelected(UITableView tableView, NSIndexPath indexPath) { if (IosUtils.IosUtility.IsReachable()) { mails[indexPath.Row].Unread = false; markRead(mails[indexPath.Row].MailId); IBContntTbl.ReloadData(); var detailsVC = new MailDetails.MailDetailsVC(); detailsVC.mail = mails[indexPath.Row]; this.NavigationController.PushViewController(detailsVC, true); } }
void configureView() { IBProfileImg.Layer.CornerRadius = IBProfileImg.Frame.Width / 2; IBProfileImg.Layer.BorderWidth = 1; IBProfileImg.Layer.BorderColor = UIColor.White.CGColor; IBProfileImg.ClipsToBounds = true; GetLaguageStrings(); IBNameLbl.Text = IosUtils.Settings.Name; IBMailAddLbl.Text = IosUtils.Settings.UserMail; IBContntTbl.RegisterNibForCellReuse(MenuCell.Nib, MenuCell.Key); GetCount(); IBContntTbl.EstimatedRowHeight = 50; }
async void GetData() { if (IosUtils.IosUtility.IsReachable()) { IosUtils.IosUtility.showProgressHud(""); var res = await WebServiceMethods.InboxEmails(IosUtils.Settings.UserId, mailTypeId); if (res != null) { mails = res; } else { } IBContntTbl.ReloadData(); IosUtils.IosUtility.hideProgressHud(); } }
void ReleaseDesignerOutlets() { if (IBContntTbl != null) { IBContntTbl.Dispose(); IBContntTbl = null; } if (IBDateDoneBar != null) { IBDateDoneBar.Dispose(); IBDateDoneBar = null; } if (IBDatePicker != null) { IBDatePicker.Dispose(); IBDatePicker = null; } if (IBEndDateTxt != null) { IBEndDateTxt.Dispose(); IBEndDateTxt = null; } if (IBSearchBtn != null) { IBSearchBtn.Dispose(); IBSearchBtn = null; } if (IBStartDateTxt != null) { IBStartDateTxt.Dispose(); IBStartDateTxt = null; } if (IBToLbl != null) { IBToLbl.Dispose(); IBToLbl = null; } }
public async void CallWebserviceForOrdersList() { try { if (IosUtility.IsReachable()) { IosUtility.showProgressHud(""); ledgerOrderList = await WebServiceMethods.GetOrders(Settings.UserId, IBStartDateTxt.Text, IBEndDateTxt.Text); IBContntTbl.ReloadData(); IosUtility.hideProgressHud(); } } catch (Exception ex) { IosUtility.hideProgressHud(); IosUtils.IosUtility.showAlertWithInfo(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("LSErrorTitle", "LSErrorTitle"), IosUtils.LocalizedString.sharedInstance.GetLocalizedString("LSUnknownError", "LSErrorTitle")); } }
/// <summary> /// Configures the view. /// </summary> void ConfigureView() { this.EdgesForExtendedLayout = UIRectEdge.None; this.NavigationItem.Title = ""; var menuBtn = new UIBarButtonItem(UIImage.FromBundle("Menu"), UIBarButtonItemStyle.Plain, MenuClicked); this.NavigationItem.LeftBarButtonItem = menuBtn; var createBtn = new UIBarButtonItem(UIImage.FromBundle("Edit"), UIBarButtonItemStyle.Plain, EditClicked); var refreshBtn = new UIBarButtonItem(UIImage.FromBundle("Refresh"), UIBarButtonItemStyle.Plain, RefreshClicked); this.NavigationItem.RightBarButtonItems = new UIBarButtonItem[] { createBtn, refreshBtn }; this.IBCancelWidth.Constant = 0; IBContntTbl.RegisterNibForCellReuse(MailDetailsCell.Nib, MailDetailsCell.Key); IBContntTbl.TableFooterView = new UIView(); this.NavigationItem.Title = "Inbox"; this.NavigationItem.BackBarButtonItem = new UIBarButtonItem("", UIBarButtonItemStyle.Plain, null, null); }
void ReleaseDesignerOutlets() { if (IBAssignedDoneBar != null) { IBAssignedDoneBar.Dispose(); IBAssignedDoneBar = null; } if (IBAssignedDoneBtn != null) { IBAssignedDoneBtn.Dispose(); IBAssignedDoneBtn = null; } if (IBAssignedToPicker != null) { IBAssignedToPicker.Dispose(); IBAssignedToPicker = null; } if (IBAssignedToTxt != null) { IBAssignedToTxt.Dispose(); IBAssignedToTxt = null; } if (IBCalendarTypeTxt != null) { IBCalendarTypeTxt.Dispose(); IBCalendarTypeTxt = null; } if (IBContntTbl != null) { IBContntTbl.Dispose(); IBContntTbl = null; } if (IBDateTimeDoneBar != null) { IBDateTimeDoneBar.Dispose(); IBDateTimeDoneBar = null; } if (IBDateTimeDoneBttn != null) { IBDateTimeDoneBttn.Dispose(); IBDateTimeDoneBttn = null; } if (IBDateTimePicker != null) { IBDateTimePicker.Dispose(); IBDateTimePicker = null; } if (IBEmptyLbl != null) { IBEmptyLbl.Dispose(); IBEmptyLbl = null; } if (IBFromDateTxt != null) { IBFromDateTxt.Dispose(); IBFromDateTxt = null; } if (IBSearchBtn != null) { IBSearchBtn.Dispose(); IBSearchBtn = null; } if (IBToDateTxt != null) { IBToDateTxt.Dispose(); IBToDateTxt = null; } if (IBToLbl != null) { IBToLbl.Dispose(); IBToLbl = null; } }