This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ошибка сервера в приложении '/'. | |
Не удалось загрузить файл или сборку "Microsoft.Owin.Security.Cookies" либо одну из их зависимостей. Найденное определение манифеста сборки не соответствует ссылке на сборку. (Исключение из HRESULT: 0x80131040) | |
Описание: Необработанное исключение при выполнении текущего веб-запроса. Изучите трассировку стека для получения дополнительных сведений о данной ошибке и о вызвавшем ее фрагменте кода. | |
Сведения об исключении: System.IO.FileLoadException: Не удалось загрузить файл или сборку "Microsoft.Owin.Security.Cookies" либо одну из их зависимостей. Найденное определение манифеста сборки не соответствует ссылке на сборку. (Исключение из HRESULT: 0x80131040) | |
Ошибка источника: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Additional information: Conflicting changes to the role 'Post_Category_Target' of the relationship 'Blog.Infrastructure.Data.Post_Category' have been detected. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A first chance exception of type 'System.Data.DataException' occurred in EntityFramework.dll | |
System.Data.Entity.Validation.DbEntityValidationException: Validation failed for one or more entities. See 'EntityValidationErrors' property for more details. | |
в System.Data.Entity.Internal.InternalContext.SaveChanges() | |
в System.Data.Entity.Internal.LazyInternalContext.SaveChanges() | |
в System.Data.Entity.DbContext.SaveChanges() | |
в System.Data.Entity.DropCreateDatabaseAlways`1.InitializeDatabase(TContext context) | |
в System.Data.Entity.Internal.InternalContext.<>c__DisplayClassf`1.<CreateInitializationAction>b__e() | |
в System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action) | |
A first chance exception of type 'System.Data.DataException' occurred in EntityFramework.dll | |
System.Data.Entity.Validation.DbEntityValidationException: Validation failed for one or more entities. See 'EntityValidationErrors' property for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CreateEditPageViewModel : ViewModelBase | |
{ | |
public RelayCommand CancelCommand { get; set; } | |
public RelayCommand<TaskItem> SaveCommand { get; set; } | |
public TaskItem TaskItem { get; set; } | |
private IRepository<TaskItem> _repository; | |
private IPageNavigationService _navigationService; | |
private IValidationService<TaskItem> _validationService; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Canvas | |
private Windows.UI.Xaml.Shapes.Path _Current; | |
private void inkCanvas_PointerReleased(object sender, PointerRoutedEventArgs e) | |
{ | |
_Current = null; | |
} | |
private void inkCanvas_PointerMoved(object sender, PointerRoutedEventArgs e) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listView.ItemClick += ListViewOnItemClick; | |
} | |
private void ListViewOnItemClick(object sender, AdapterView.ItemClickEventArgs itemClickEventArgs) | |
{ | |
_selectedStation = _list[itemClickEventArgs.Position]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async void ConfigurateLogger() | |
{ | |
StorageFolder logsFolder = null; | |
try | |
{ | |
logsFolder = await ApplicationData.Current.LocalFolder.GetFolderAsync("Logs"); | |
} | |
catch (Exception) | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void PowerCircleAnimation(double soundLevel) | |
{ | |
WavesStoryboard.Stop(); | |
_maxSoundLevel = Math.Max(soundLevel, 1d); | |
var radiusCoeff = _maxSoundLevel == 0.0f ? 0.0f : soundLevel/_maxSoundLevel; | |
var radius = _minRadius + (_maxRadius - _minRadius)*Math.Min(radiusCoeff, 1d); | |
var width = WavesStoryboard.Children[0] as DoubleAnimationUsingKeyFrames; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class PhraseSpotterPageViewModel : ViewModels.ViewModelBase.ViewModelBase | |
{ | |
/// <summary> | |
/// Method initialize async SpeechKit for PhraseSpotterCase | |
/// </summary> | |
private void InitSk() | |
{ | |
SpeechKitInitializer.Configure(SKStartupSettings.APIKey); | |
SpeechKitInitializer.InitializeAsync(); | |
IsStartEnabled = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Event<T> { | |
private val handlers = arrayListOf<(Event<T>.(T) -> Unit)>() | |
fun plusAssign(handler: Event<T>.(T) -> Unit) { handlers.add(handler) } | |
fun invoke(value: T) { for (handler in handlers) handler(value) } | |
} | |
val e = Event<String>() // define event | |
fun main(args : Array<String>) { | |
e += { println(it) } // subscribe |
OlderNewer