Esempio n. 1
0
 internal static void Left()
 {
     nodeController.Left();
     GlobalClass.Invalidate();
 }
Esempio n. 2
0
 public static void Up()
 {
     nodeController.Up();
     GlobalClass.Invalidate();
 }
Esempio n. 3
0
 internal static void Right()
 {
     nodeController.Right();
     GlobalClass.Invalidate();
 }
Esempio n. 4
0
 internal static void AddImageToDownloadFolder(Image image)
 {
     nodeController.AddToDownloadFolder(image);
     GlobalClass.Invalidate();
 }
Esempio n. 5
0
 internal static void OpenRootNode()
 {
     nodeController.OpenRootNode();
     GlobalClass.Invalidate();
 }
Esempio n. 6
0
 public static void ExitProgram()
 {
     GlobalClass.DoActionBeforeExiting();
     GlobalClass.ParentForm.Dispose();
 }
Esempio n. 7
0
 public static void AddCustomFolder()
 {
     nodeController.AddCustomFolder();
     GlobalClass.Invalidate();
 }
Esempio n. 8
0
 private static void OpenAllImages()
 {
     nodeController.OpenAllImages();
     GlobalClass.Invalidate();
 }
Esempio n. 9
0
 internal static void EnterDown()
 {
     nodeController.EnterDown();
     GlobalClass.Invalidate();
 }
Esempio n. 10
0
 internal static void GoBack()
 {
     nodeController.GoBack();
     GlobalClass.Invalidate();
 }
Esempio n. 11
0
 private void Worker_ProgressChanged(object sender, ProgressChangedEventArgs e)
 {
     GlobalClass.Invalidate();
 }
Esempio n. 12
0
        internal void Paint(Graphics graphics)
        {
            graphics.FillRectangle(GlobalClass.TitleBrush, new RectangleF(0, 0, GlobalClass.ParentBoundry.Width, GlobalClass.TitleHeight));
            //  graphics.DrawImage(Properties.Resources.line, new Rectangle(0, GlobalClass.TitleHeight-3, GlobalClass.ParentBoundry.Width, 5));
            if (GlobalClass.SelectedNode != null)
            {
                s = graphics.MeasureString(CurrentNodeDisplayName + " >> " + GlobalClass.SelectedNode.DisplayName, GlobalClass.SmallfontBold);
                graphics.DrawString(CurrentNodeDisplayName + " >> " + GlobalClass.SelectedNode.DisplayName, GlobalClass.SmallfontBold, Brushes.White, new RectangleF(5, 2, GlobalClass.ParentBoundry.Width, GlobalClass.TitleHeight));
            }
            else
            {
                s = graphics.MeasureString(CurrentNodeDisplayName, GlobalClass.SmallfontBold);
                graphics.DrawString(CurrentNodeDisplayName, GlobalClass.SmallfontBold, Brushes.Gray, new RectangleF(5, 2, GlobalClass.ParentBoundry.Width, GlobalClass.TitleHeight));
            }

            //Selected Folder Image
            GraphicsPath path = GlobalClass.GetRoundBoundry(new RectangleF(5, s.Height + 5, 60, 60), 10);

            graphics.SetClip(path);
            if (GlobalClass.SelectedNode != null)
            {
                graphics.DrawImage(GlobalClass.SelectedNode.CoverImage, new RectangleF(5, s.Height + 5, 60, 60));
            }
            else
            {
                graphics.FillRectangle(GlobalClass.BlankBrush, new RectangleF(5, s.Height + 5, 60, 60));
                if (CurrentNodeDisplayName == "Favorite")
                {
                    graphics.DrawImage(Properties.Resources.fav, new RectangleF(5 + 60 / 2 - 36 / 2, s.Height + 5 + 60 / 2 - 36 / 2, 36, 36));
                }
                else if (CurrentNodeDisplayName == "Recycle Bin")
                {
                    graphics.DrawImage(Properties.Resources.deletedicon, new RectangleF(5 + 60 / 2 - 36 / 2, s.Height + 5 + 60 / 2 - 36 / 2, 36, 36));
                }
                else if (CurrentNodeDisplayName == "Downloads")
                {
                    graphics.DrawImage(Properties.Resources.downloads, new RectangleF(5 + 60 / 2 - 36 / 2, s.Height + 5 + 60 / 2 - 36 / 2, 36, 36));
                }
            }
            graphics.ResetClip();
            graphics.DrawPath(GlobalClass.BorderColorPen, path);
            graphics.DrawString("Loaded From : ", GlobalClass.SmallfontBold, Brushes.LightGoldenrodYellow, new PointF(GlobalClass.LeftPanelWidth, s.Height + 5));

            graphics.DrawString(ActiveFolder, GlobalClass.SmallfontBold, Brushes.LightGray, new PointF(GlobalClass.LeftPanelWidth + 70, s.Height + 5));



            //Selected Node Image
            path = GlobalClass.GetRoundBoundry(new RectangleF(5 + 65, s.Height + 5, 60, 60), 10);
            graphics.SetClip(path);
            if (GlobalClass.SelectedEntity != null)
            {
                graphics.DrawImage(GlobalClass.SelectedEntity.GetThumbnail(), new RectangleF(5 + 65, s.Height + 5, 60, 60));
            }
            else
            {
                graphics.FillRectangle(GlobalClass.BlankBrush, new RectangleF(5 + 65, s.Height + 5, 60, 60));
            }
            graphics.ResetClip();
            graphics.DrawPath(GlobalClass.BorderColorPen, path);

            ////Select Nodes and Entity Count
            //if (NodeSelected)
            //{
            //    float startx = s.Width + 7;
            //    if (NodeCount > 0)
            //    {
            //        s = graphics.MeasureString(" " + NodeCount + " folders ", GlobalClass.SmallfontBold);
            //        graphics.DrawString(" " + NodeCount + " folders ", GlobalClass.SmallfontBold, Brushes.DeepPink, startx, 2);
            //        startx += s.Width+5;
            //    }
            //    if (EntityCount > 0)
            //        graphics.DrawString(" " + EntityCount + " images ", GlobalClass.SmallfontBold, Brushes.SkyBlue, startx, 2);
            //    if (EntityCount == 0 && NodeCount == 0)
            //        graphics.DrawString("Empty Folder", GlobalClass.SmallfontBold, Brushes.Gold, startx, 2);
            //}
            if (Controller.GetSelectionCount() != 0)
            {
                graphics.DrawString(Controller.GetSelectionCount() + " Items Selected", GlobalClass.SmallfontBold, Brushes.Gold, new PointF(5, s.Height + 70));
            }
        }