Inheritance: System.Windows.Window
Ejemplo n.º 1
0
        void flowerQueueListBox_ItemDoubleClick(object sender, MouseButtonEventArgs e)
        {
            var listBoxItem = sender as ListBoxItem;
              if (listBoxItem == null)
            return;

              var queueItem = listBoxItem.Content as FlowerQueueItem;
              if (queueItem == null)
            return;

              if (selectedMacro == null)
            return;

              var dialog = new FlowerTargetWindow(queueItem);
              dialog.Owner = this;

              var result = dialog.ShowDialog();

              if (!result.HasValue || !result.Value)
            return;

              dialog.FlowerQueueItem.CopyTo(queueItem);
        }
Ejemplo n.º 2
0
        void addFlowerTargetButton_Click(object sender, RoutedEventArgs e)
        {
            if (selectedMacro == null)
            return;

              var flowerTargetDialog = new FlowerTargetWindow();
              flowerTargetDialog.Owner = this;

              var result = flowerTargetDialog.ShowDialog();
              if (!result.HasValue || !result.Value)
            return;

              var queueItem = flowerTargetDialog.FlowerQueueItem;
              queueItem.LastUsedTimestamp = DateTime.Now;
              selectedMacro.AddToFlowerQueue(queueItem);
        }