Ejemplo n.º 1
0
        public folderView(MainForm main)
        {
            InitializeComponent();
            DoubleBuffered = true;
            caller = main;
            gvFiles.AlternatingRowsDefaultCellStyle = null;
            gvFiles.CellPainting += new DataGridViewCellPaintingEventHandler(gvFiles_CellPainting);
            List<string> folders = System.IO.Directory.GetDirectories(
                Environment.GetFolderPath(Environment.SpecialFolder.MyVideos)).ToList();
            folders.Insert(0, Environment.GetFolderPath(Environment.SpecialFolder.MyVideos));
            folders.Insert(folders.Count,
                Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads"));
            ddUrl.ComboBox.DataSource = folders;
            ddUrl.ComboBox.MouseWheel += new MouseEventHandler(combobox_MouseWheel);
            ddUrl.ComboBox.SelectedValueChanged += new EventHandler(ddUrl_SelectedValueChanged);

            animation.Image = LFI.Properties.Resources.progress;
            animation.Width = 16;
            animation.Height = 16;
            animation.BackColor = Color.Transparent;
            animation.Hide();
            gvFiles.Controls.Add(animation);

            Dictionary<EPFORMAT, string> choices = new Dictionary<EPFORMAT, string>();
            choices.Add(EPFORMAT.REG_NUM, "{##}");
            choices.Add(EPFORMAT.ALL_NUM, "{##}{##}");
            choices.Add(EPFORMAT.NUM_X_NUM, "{##}x{##}");
            choices.Add(EPFORMAT.S_NUM_E_NUM, "S{##}E{##}");
            choices.Add(EPFORMAT.LONG, "Se{##}Ep{##}");
            ddFormat.DataSource = new BindingSource(choices, null);
            ddFormat.DisplayMember = "Value";
            ddFormat.ValueMember = "Key";
            choices.Remove(EPFORMAT.ALL_NUM);
            choices.Remove(EPFORMAT.LONG);
            choices.Add(EPFORMAT.MOVIE, "*[####]*");
            ddFormat_Use.DataSource = new BindingSource(choices, null);
            ddFormat_Use.DisplayMember = "Value";
            ddFormat_Use.ValueMember = "Key";
            toolStrip1.Renderer = new TSystemRenderer();

            for (int i = 0; i < gvFiles.Columns.Count; i++)
                dtFilter.Columns.Add("Col_" + i.ToString());

            open_Folder();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Load child Panes and components.
        /// </summary>
        public mainView(MainForm main)
        {
            InitializeComponent();
            caller = main;
            DoubleBuffered = true;
            btnCategory_Click(btnCate_TV, null);
            populateList();
            infoPane = new infoPane();
            contentPane = new contentsPane(caller);
            editPane = new editPane();
            panelMain.Controls.Add(infoPane);
            panelMain.Controls.Add(contentPane);
            panelMain.Controls.Add(editPane);
            infoPane.Enable();
            contentPane.Disable();
            editPane.Disable();

            txtSearch.Enter += new EventHandler(c_Enter);
            gvTitles.Enter += new EventHandler(c_Enter);
        }
Ejemplo n.º 3
0
 public contentsPane(MainForm main)
 {
     caller = main;
     InitializeComponent();
 }