public FileOps(IntPtr theParent, string Path, LanguageLoader.LanguageLoader LanguageData, SettingsLoader.SettingsLoader SettingsData) { this.ParentObjectHandle = theParent; this.Language = LanguageData; this.DockSettings = SettingsData; if (this.DockSettings.General.EnablePortabilityMode && !Path.StartsWith(".\\")) { try { int num = Application.StartupPath.IndexOf(":\\"); int num2 = Path.IndexOf(":\\"); if (num >= 0 && num2 >= 0) { this._Path = Application.StartupPath.Substring(0, num + ":\\".Length) + Path.Substring(num2 + ":\\".Length, Path.Length - (num2 + ":\\".Length)); } else { this._Path = Path; } } catch (Exception) { this._Path = Path; } } else { this._Path = Path; } if (Path.StartsWith(".\\")) { this._Path = Application.StartupPath + "\\" + Path.Substring(".\\".Length); } this.GetFileInfo(this._Path); }
public DockItemProperties(DockItemObject TheParent, LanguageLoader.LanguageLoader LanguageData, SettingsLoader.SettingsLoader SettingsData, DockItemSettingsLoader.DockItemSettingsLoader DockItemSettingsData, string SectionName) { this.ParentObject = TheParent; this.Language = LanguageData; this.DockSettings = SettingsData; this.DockItemSettings = DockItemSettingsData; this.Loaded = false; this.InitializeComponent(); this.InitializeSettings(); }
public LabelObject(MainForm theParent, SettingsLoader.SettingsLoader SettingsData, Size DisplaySize) { this.ParentObject = theParent; this.DockSettings = SettingsData; this.LabelSize = DisplaySize; this.InitializeComponent(); this.DoubleBuffered = true; this.AnimationTimer.Tick += new EventHandler(this.AnimationTimer_Tick); this.AnimationTimer.Interval = this.DockSettings.General.AnimationInterval; this.SetZLevel(); base.ShowInTaskbar = false; this.AllowDrop = false; this.ObjectOpacity = this.DockSettings.Labels.DefaultOpacity; }
public DockItemObject(MainForm TheParent, LanguageLoader.LanguageLoader LanguageData, SettingsLoader.SettingsLoader SettingsData, DockItemSettingsLoader.DockItemSettingsLoader DockItemData, string SectionName, Size InitialSize, string Path) { this.Language = LanguageData; this.DockSettings = SettingsData; this.ParentObject = TheParent; this.DockItemSettings = DockItemData; this.DockItemSectionName = SectionName; this.ObjectSize = InitialSize; this.StoredMouseOffset = new Point(0, 0); this.dockOrderNum = 0; this.RetrieveDockItemOrder(); this.InitializeFileOps(); this.InitializeComponent(); this.AnimationTimer.Tick += new EventHandler(this.AnimationTimer_Tick); this.AnimationTimer.Interval = this.DockSettings.General.AnimationInterval; this.SetZLevel(); this.LeftMouseButtonDown = false; this.ThisObjectMovedWithLeftMouse = false; this.ObjectOpacity = this.DockSettings.DockItems.DefaultOpacity; this.PreviousOpacity = this.ObjectOpacity; this.SetBitmap(); this.MyLabel = new LabelObject(this.ParentObject, SettingsData, this.ObjectSize); this.MyLabel.Owner = this; }
public FileOps(IntPtr theParent, LanguageLoader.LanguageLoader LanguageData, SettingsLoader.SettingsLoader SettingsData) { this.ParentObjectHandle = theParent; this.Language = LanguageData; this.DockSettings = SettingsData; }
public CentreObject(MainForm TheParent, LanguageLoader.LanguageLoader LanguageData, SettingsLoader.SettingsLoader SettingsData, string Section, Size InitialSize) { this.Language = LanguageData; this.DockSettings = SettingsData; this.ParentObject = TheParent; this.ObjectSize = InitialSize; this.SectionName = Section; this.InitializeComponent(); this.DoubleBuffered = true; this.AnimationTimer.Tick += new EventHandler(this.AnimationTimer_Tick); this.AnimationTimer.Interval = this.DockSettings.General.AnimationInterval; base.ShowInTaskbar = false; this.AllowDrop = true; this.LeftMouseButtonDown = false; this.ThisObjectMovedWithLeftMouse = false; this.StoredMouseOffset = new Point(0, 0); this.ObjectBitmap = new Bitmap(1, 1, PixelFormat.Format32bppArgb); this.OverlayBitmap = new Bitmap(1, 1, PixelFormat.Format32bppArgb); this.ObjectOpacity = this.DockSettings.CentreImage.DefaultOpacity; this.PreviousOpacity = this.ObjectOpacity; this.SetZLevel(); this.SetBitmap(); }