Ejemplo n.º 1
0
        private void LoadTags()
        {
            if (isLoadTags)
            {
                return;
            }
            List <string> listTags = MovieDataBLL.GetMovieAllTags();
            //System.Diagnostics.Debug.WriteLine(DateTime.Now.ToString() + "  Millisecond:" + DateTime.Now.Millisecond.ToString());
            int i = 0;

            foreach (string tag in listTags)
            {
                if (labelPointX + 70 > this.Width)
                {
                    labelPointX  = 40;
                    labelPointY += 40;
                }
                Label labelTag = new Label();
                labelTag.AutoSize  = true;
                labelTag.BackColor = System.Drawing.Color.Transparent;
                labelTag.Font      = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
                labelTag.ForeColor = System.Drawing.Color.Gainsboro;
                labelTag.Location  = new System.Drawing.Point(labelPointX, labelPointY);
                labelTag.Name      = "labelTag";
                labelTag.TabIndex  = i;
                labelTag.Text      = tag;
                labelTag.Tag       = 0;
                labelTag.Click    += new System.EventHandler(this.labelTag_Click);
                i++;
                panelTag.Controls.Add(labelTag);
                labelPointX = labelPointX + 20 + labelTag.Width;
            }
            isLoadTags = true;
        }
Ejemplo n.º 2
0
 public Form_MoviePreview()
 {
     InitializeComponent();
     buttonPanelControl = new ButtonPanelControl(MovieDataBLL.GetActorAllNameToInitial());
     InitButton();
     previewControl.Dock = DockStyle.Fill;
     panelPicSubMenu.Controls.Add(previewControl);
 }
Ejemplo n.º 3
0
        public Form_SplashScreen()
        {
            InitializeComponent();
            MovieDataBLL m = MovieDataBLL.Instance;

            MovieDataBLL.progress += MovieDataBLL_progressEventHandler;
            MovieDataBLL movieData = MovieDataBLL.Instance;
            Task <int>   t         = MovieDataBLL.InitMovieDataAsync();
        }
Ejemplo n.º 4
0
        private void SeachMovieSn()
        {
            List <MovieInfo> movieDatas = MovieDataBLL.FindFuzzyMovies(currentText);

            if (movieDatas.Count != 0)
            {
                previewControl.Show(movieDatas);
                panelShowTag.Visible = false;
            }
        }
Ejemplo n.º 5
0
        private void SeachActorNames()
        {
            List <string> actorNames = MovieDataBLL.FindFuzzyActorNames(currentText);

            if (actorNames.Count != 0)
            {
                buttonPanelControl      = new ButtonPanelControl(actorNames);
                buttonPanelControl.Dock = DockStyle.Left;
                buttonPanelControl.Button_MouseDownEvent += ButtonPanelControl_Button_MouseDownEvent;
                panelButton.Controls.Add(buttonPanelControl);
            }
        }
Ejemplo n.º 6
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            LoadIni();
            MovieDataBLL movieData = MovieDataBLL.Instance;

            if (movieData.GetXmlFileCount() > 0)
            {
                UI.Form_SplashScreen fsc = new UI.Form_SplashScreen();
                fsc.ShowDialog();
            }
            Application.Run(new avMovieManager.UI.Form_Main());
        }
Ejemplo n.º 7
0
 private void iconButtonLastVideo_Click(object sender, EventArgs e)
 {
     //List<int> testlist = new List<int>();
     //for(int i = 0; i < 10000000; i++)
     //{
     //    Random rd = new Random();
     //    testlist.Add(rd.Next(90523, 10000000));
     //}
     //System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();
     //watch.Start();  //开始监视代码运行时间
     //var ccc = testlist.OrderBy(u => u).ToList();
     //watch.Stop();  //停止监视
     //TimeSpan timespan = watch.Elapsed;  //获取当前实例测量得出的总时间
     //System.Diagnostics.Debug.WriteLine("打开窗口代码执行时间:{0}(毫秒)", timespan.TotalMilliseconds);  //总毫秒数
     //return;
     BackHome();
     previewControl.Dock = DockStyle.Fill;
     panelDesktop.Controls.Add(previewControl);
     previewControl.Show(MovieDataBLL.GetLastMovieInfos());
 }
Ejemplo n.º 8
0
 private void ShowActorCover(string name)
 {
     previewControl.Show(MovieDataBLL.FindActorNameToMovies(name));
 }
Ejemplo n.º 9
0
 private void ButtonPanelControl_Button_MouseDownEvent(string name)
 {
     previewControl.Show(MovieDataBLL.FindActorNameToMovies(name));
     currentText          = "";
     panelShowTag.Visible = false;
 }
Ejemplo n.º 10
0
        private void TagPanel_Button_SearchTagsEvent(List <string> tags)
        {
            List <MovieInfo> movieDatas = MovieDataBLL.FindTagsToMovies(tags);

            previewControl.Show(movieDatas);
        }