示例#1
0
        public SweeperSelectSettingsForm()
        {
            InitializeComponent();
            this.KeyPreview  = true;
            this.MaximumSize = new Size(600, 400);
            this.MinimumSize = new Size(600, 400);

            CheckBoxes.Add(checkBox1);
            CheckBoxes.Add(checkBox2);
            CheckBoxes.Add(checkBox3);
            CheckBoxes.Add(checkBox4);

            RadioLetterComboBoxSetup();


            add_radio_textbox.KeyDown += (sender, args) =>
            {
                if (args.KeyCode == Keys.Enter)
                {
                    if (add_radio_textbox.Focused)
                    {
                        add_radio_button_Click(sender, args);
                    }
                    else if (location_textbox.Focused)
                    {
                        add_location_button_Click(sender, args);
                    }
                }
            };
            //radio_letter_combo_box.SelectedIndexChanged += RadioLetterComboBoxIndexChange;

            Setup();
            WindowColors.ColorChangeEvent += () => WindowColors.Colorize(this);
            WindowColors.Colorize(this);
        }
示例#2
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);
        }