5:05 AM
public class ProductViewModel : BaseViewModel { public string Name { get; set; } public int Width { get; set; } public int Height { get; set; } private IList<KeyValuePair<Spindle, ProductTime>> dict; public IList<KeyValuePair<Spindle, ProductTime>> Dict { get => dict; set => Set(ref dict, value); } public ProductViewModel() { Dict = new List<KeyValuePair<Spindle, ProductTime>>(); } }
И превращаю мои IList<Spindle> и IList<Product> в IList<ProductViewModel>. Потом привязываю первый DataGrid к коллекции IList<ProductViewModel>, а конкретно свойства Name, Width и Height. А второй DataGrid привязываю на SelectedProduct.Dict, тоесть привязываю на внутреннюю коллекцию выбранного ProductViewModel в первом DataGrid
5 hours later…
10:16 AM
Ребят, а не подскажете такой момент. У меня есть ObservableCollection<ProductViewModel>, привязанная к DataGrid. Я хочу, чтобы после всех изменений(Добавить/Удалить/Изменить, которые я произведу в этой коллекции через DataGrid, я смог сохранить все это в БД. Ну узнать, когда что-то добавилось в коллекцию или удалилось я смогу через событие CollectionChanged, моей коллекции. А изменения? Как мне узнать какие строки были подвержены изменениям?
1 hour later…
11:36 AM
7 hours later…
6:56 PM
1
Реализую игру Жизнь Конвея, возникла проблема в "быстром отображении"(под быстром понимается каждые 20 милисеунд на форме(или на канвасе) рисовать около 60000 квадратов) матриц каждого хода. Рисую обычным проходом по битовой матрице и "тупой от рисовкой" на канвас(пример метода ниже), но получае...
2 hours later…
8:29 PM
Hi Andrey!
We have some important news for our ReSharper users.
Starting with the next ReSharper 2018.2 release, we will require having .NET Framework 4.6.1 installed on your machine. Earlier versions of ReSharper will continue to work on .NET Framework 4.5.
Newer versions of the .NET Framework come with numerous improvements, such as performance, security and Windows Presentation Foundation updates. The NuGet client SDK used by ReSharper also requires .NET Framework 4.6 or higher. Making use of the newer, modern runtime brings along these improvements and will greatly benefit our users.
We have some important news for our ReSharper users.
Starting with the next ReSharper 2018.2 release, we will require having .NET Framework 4.6.1 installed on your machine. Earlier versions of ReSharper will continue to work on .NET Framework 4.5.
Newer versions of the .NET Framework come with numerous improvements, such as performance, security and Windows Presentation Foundation updates. The NuGet client SDK used by ReSharper also requires .NET Framework 4.6 or higher. Making use of the newer, modern runtime brings along these improvements and will greatly benefit our users.
« first day (949 days earlier) ← previous day next day → last day (2082 days later) »
Transcript for
Mar20
Mar '1821
Mar22
Дискуссии о C#/.NET на русском
Эта комната посвящена обсуждению C#: всё, что не подходит в фо...