internal static object ConvertAccommodationClass(ServiceClass accommodation, bool isCancelOrDelete = false) { if (accommodation == ServiceClass.None) { return((object)DBNull.Value); } // If cancel or delete then need to override default value of B return(isCancelOrDelete && accommodation == ServiceClass.B ? (object)DBNull.Value : accommodation.ToString()); }
protected override void OnNavigatedTo(NavigationEventArgs e) { var parameter = e.Parameter; serviceclass = (ServiceClass)parameter; il = new ObservableCollection <Issue>(); selectedIssue = null; page_header.Text = serviceclass.ToString(); il = ig.LoadUncompleted(serviceclass); issue_list.DataContext = il; this.InitializeComponent(); }