private void SetStop(int message, MessageStorage storage) { CreateStop(message); Stops.Messages[message] = storage; }
private void EditLine(object sender, RoutedEventArgs e) { PageEditor pe = new PageEditor(Lines.Messages[LineSelector.SelectedIndex] != null ? Lines.Messages[LineSelector.SelectedIndex].Pages[0] : null, false, new Int32Rect(0, 0, Settings.Default.MessageLineWidth, Settings.Default.DisplayHeight), LineSelector.SelectedIndex, "line", 0, 1); if (pe.ShowDialog() == true) { MessageStorage tmpMessage = new MessageStorage(false, 1); tmpMessage.Pages[0] = pe.Page; Lines.Messages[LineSelector.SelectedIndex] = tmpMessage; ((ComboBoxItem)LineSelector.SelectedItem).Background = ItemExists; LineSelector.Background = ItemExists; RefreshPreview(); UpdateLineText(LineSelector.SelectedIndex); } }
private void SetDestination(int message, MessageStorage storage) { CreateDestination(message); Destinations.Messages[message] = storage; }
public MessageStorage(MessageStorage source) { Loop = source.Loop; Pages = new List<PageStorage>(source.Pages); }