private void ImportComplete(ushort[] value) { // if (value != null) // { //if (value.First() == 0xFF) //{ // this.ShowMessage("График пуст", // "Чтение графика", MessageBoxImage.Information); //} //else //{ this._value = GraphicValue.SetValue(this.InitializeGraphic(), value); this.UpdateBinding(); //} //} //else //{ // if (this.ShowMessage != null) // { // this.ShowMessage("Во время чтения графика из устройства произошла ошибка.", // "Чтение графика", MessageBoxImage.Error); // } //} uiExport.IsEnabled = uiImport.IsEnabled = uiOpen.IsEnabled = uiSave.IsEnabled = uiClearAll.IsEnabled = true; }
private void SetGraphicValue(ushort[] value) { /*Подправить для экономии*/ if (value is Array) { this._value = GraphicValue.SetValue(this.InitializeGraphic(), value); this.UpdateBinding(); } }