internal static void Left() { nodeController.Left(); GlobalClass.Invalidate(); }
public static void Up() { nodeController.Up(); GlobalClass.Invalidate(); }
internal static void Right() { nodeController.Right(); GlobalClass.Invalidate(); }
internal static void AddImageToDownloadFolder(Image image) { nodeController.AddToDownloadFolder(image); GlobalClass.Invalidate(); }
internal static void OpenRootNode() { nodeController.OpenRootNode(); GlobalClass.Invalidate(); }
public static void ExitProgram() { GlobalClass.DoActionBeforeExiting(); GlobalClass.ParentForm.Dispose(); }
public static void AddCustomFolder() { nodeController.AddCustomFolder(); GlobalClass.Invalidate(); }
private static void OpenAllImages() { nodeController.OpenAllImages(); GlobalClass.Invalidate(); }
internal static void EnterDown() { nodeController.EnterDown(); GlobalClass.Invalidate(); }
internal static void GoBack() { nodeController.GoBack(); GlobalClass.Invalidate(); }
private void Worker_ProgressChanged(object sender, ProgressChangedEventArgs e) { GlobalClass.Invalidate(); }
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)); } }