Пример #1
0
 public void Remove()
 {
     if (this.Index >= 0 && this.Index < currentListImplemented.Songs.Count)
     {
         SongView.RemoveAt(this.Index);
     }
 }
Пример #2
0
 private void KeyDowned(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Delete)
     {
         SongView.RemoveSelected();
     }
     if (e.KeyCode == Keys.A && ModifierKeys.HasFlag(Keys.Control))
     {
         imported_list.Songs.ForEach((x) => x.SongView.Select());
     }
     if (e.KeyCode == Keys.X && ModifierKeys.HasFlag(Keys.Control))
     {
         SongView.Cutter();
     }
     if (e.KeyCode == Keys.C && ModifierKeys.HasFlag(Keys.Control))
     {
         SongView.Coppier();
     }
     if (e.KeyCode == Keys.Home)
     {
         Panel_Options.FirstControlIndex = 0;
     }
     if (e.KeyCode == Keys.End)
     {
         Panel_Options.FirstControlIndex = Panel_Options.FirePlayList.Songs.Count;
     }
     if (e.KeyCode == Keys.Multiply)
     {
         StopAllPlayingSongs();
     }
 }
Пример #3
0
        public void UpdateSongView(object sender, EventArgs e)
        {
            ClearPanelControls();
            SongView.CreateSongViewFromList(imported_list);

            UpdateSongViewAfterChange(this, new EventArgs());
        }
Пример #4
0
        /////////////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////    CONSTRUCTOR    ///////////////////////////////////////
        /////////////////////////////////////////////////////////////////////////////////////////////////

        public Sweeper_Form(int z, StartingWindowForm main_window)
        {
            InitializeComponent();

            this.Panel_Options = new PanelOptions(panel1);

            panel1.BackColor = System.Drawing.ColorTranslator.FromHtml("#888888");
            SongView.ShowAll();

            this.Show();
            _main_window = main_window;
            Setup();
            this.AllowDrop            = true;                             //enables drag-n-drop functionaity
            this.DragEnter           += new DragEventHandler(DragEnter_); //Drag-n-drop funcitonality
            this.DragDrop            += new DragEventHandler(DragDrop_);  //Drag-n-drop funcitonality
            this.SizeChanged         += new EventHandler(Changed);        //Should reacto to window size change
            tabControl1.SelectedIndex = z;

            this.KeyPreview = true;
            this.KeyPress  += KeyPressed;
            this.KeyDown   += KeyDowned;
        }
Пример #5
0
        ///////////////////////////////////////////////////////////////////////////////////////////////
        ///////////////////////////////////////      SETUP      ///////////////////////////////////////
        ///////////////////////////////////////////////////////////////////////////////////////////////

        private void Setup()
        {
            listBox3.Items.AddRange(new string[] { "ID", "Naziv", "Autor", "Album", "Info", "Tip", "Color", "NaKanalu", "PathName", "ItemType", "StartCue", "EndCue", "Pocetak", "Trajanje", "Vrijeme", "StvarnoVrijemePocetka", "VrijemeMinTermin", "VrijemeMaxTermin", "PrviUBloku", "ZadnjiUBloku", "JediniUBloku", "FiksniUTerminu", "Reklama", "WaveIn", "SoftIn", "SoftOut", "Volume", "OriginalStartCue", "OriginalEndCue", "OriginalPocetak", "OriginalTrajanje" });

            //this.FormBorderStyle = FormBorderStyle.None;

            def                    = this.Size.Width;
            label1.Anchor          = (AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Top);
            label3.Anchor          = (AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Top);
            label2.Anchor          = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Top);
            brisanje_button.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
            listBox1.Anchor        = (AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Top);
            listBox2.Anchor        = (AnchorStyles.Right | AnchorStyles.Top);
            listBox3.Anchor        = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right);
            names_button.Anchor    = (AnchorStyles.Bottom | AnchorStyles.Right);
            tabControl1.Anchor     = (AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Top);
            listBox2.SelectionMode = SelectionMode.MultiSimple;
            //this.SizeChanged += this.Label2_Size;
            tabPage1.Text   = "Informacije";
            tabPage2.Text   = "Sweeperi";
            tabPage3.Text   = "Napravi Listu";
            this.KeyPreview = true;

            //panel1.AutoScroll = true;
            //listview_box.Visible = false;
            panel1.AutoScroll = false;


            this.MinimumSize = new Size(800, 500);
            this.MaximumSize = new Size(800, System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height);

            //// SWEEPER TAB //////
            panel1.Anchor          = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
            sweeper_listbox.Anchor = (AnchorStyles.Bottom | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Left);
            radio_listbox.Anchor   = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);

            this.KeyDown += (t, u) =>
            {
                if (tabControl1.SelectedIndex == 1)
                {
                    if (u.KeyCode == (Keys.A | Keys.Control))
                    {
                        SongView.SelectAll();
                    }
                }
            };

            tabControl1.KeyDown += (t, u) =>
            {
                if (tabControl1.SelectedIndex == 1)
                {
                    if (u.KeyCode == (Keys.A | Keys.Control))
                    {
                        SongView.SelectAll();
                    }
                }
            };

            panel1.KeyDown += (t, u) =>
            {
                if (tabControl1.SelectedIndex == 1)
                {
                    if (u.KeyCode == (Keys.A | Keys.Control))
                    {
                        SongView.SelectAll();
                    }
                }
            };
            //// SWEEPER TAB //////

            FilesChanged += UpdateWhatHasToBeDone;

            SongView.SongInSongViewChanged += UpdateSongViewAfterChange;
            SongView.SongViewChanged       += UpdateSongViewAfterChange;

            panelSetUp();
            //ChangePanelView(_currentView);


            ////////////////////////////////////  RADIO LISTVIEW  ////////////////////////////////////
            RADIOSetup();
            ////////////////////////////////////  RADIO LISTVIEW  ////////////////////////////////////


            ////////////////////////////////////  RADIO LISTVIEW  ////////////////////////////////////
            SweepersSetup();
            ////////////////////////////////////  RADIO LISTVIEW  ////////////////////////////////////

            this.MouseWheel += ScrollFunction;
            QuickSweeper.tpb = view_button_Click;

            ColorSetup();
            WindowColors.ColorChangeEvent += new WindowColors.Pump(ColorSetup);
            Stylize();
            WindowColors.Colorize(this);
            WindowColors.ColorChangeEvent += () => WindowColors.Colorize(this);
        }
Пример #6
0
 private void remove_button_Click(object sender, EventArgs e)
 {
     SongView.RemoveSelected();
     AddSongViewToPanel(imported_list);
     AddSongViewToPanel(imported_list);
 }
Пример #7
0
 private void AddSongViewToPanel(FirePlayList _imported_list)
 {
     SongView.CreateSongViewFromList(_imported_list);
     UpdateSongViewAfterChange(this, new EventArgs());
 }
Пример #8
0
 private void UpdateSongViewAfterChange(SongChangeEventArgs e)
 {
     SongView.CreateSongViewFromList(imported_list);
     UpdateSongViewAfterChange(this, new EventArgs());
 }