Ejemplo n.º 1
0
 public Window1(MainWindow parent, KeyActionClass ka)
 {
     keyAction = ka;
     playWindow = parent;
     InitializeComponent();
     songListPathTextBox.Text = @"C:\Users\home\Music\Playlists\wakeupSongs.wpl";
     podPathTextBox.Text = @"C:\Users\home\Documents\My Received Podcasts";
     loadConfig();
 }
Ejemplo n.º 2
0
 public Window2(Window1 w, MainWindow mw)
 {
     callWindow = w;
     playWindow = mw;
     InitializeComponent();
     refresh();
     dispatcherTimer = new System.Windows.Threading.DispatcherTimer();
     dispatcherTimer.Tick += new EventHandler(timerTick);
     dispatcherTimer.Interval = new TimeSpan(0, 0, 1);   // 1second
     dispatcherTimer.Start();
 }
Ejemplo n.º 3
0
 public Window3(Window1 w, MainWindow mw)
 {
     callWindow = w;
     playWindow = mw;
     InitializeComponent();
     foreach(String act in playWindow.actionList)
     {
         StackPanel sp = new StackPanel();
         sp.Orientation = Orientation.Horizontal;
         Label lbl = new Label();
         lbl.Content = act;
         lbl.Width = actionLbl.Width;
         sp.Children.Add(lbl);
         ComboBox cb = new ComboBox();
         cb.Width = keyLbl.Width;
         cb.SelectionChanged += actionKeyChanged;
         loadKeyItems(cb);
         setSelected(cb,act);
         sp.Children.Add(cb);
         keyStackPanel.Children.Add(sp);
     }
     fixSource = true;
 }