Пример #1
0
 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);
 }
Пример #2
0
 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();
 }
Пример #3
0
 public BackgroundObject(MainForm TheParent, LanguageLoader.LanguageLoader LanguageData, SettingsLoader.SettingsLoader SettingsData, string Section, Size InitialSize)
 {
     this.Language     = LanguageData;
     this.DockSettings = SettingsData;
     this.ParentObject = TheParent;
     this.SectionName  = Section;
     this.ObjectSize   = InitialSize;
     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.ObjectBitmap                 = new Bitmap(1, 1, PixelFormat.Format32bppArgb);
     this.OverlayBitmap                = new Bitmap(1, 1, PixelFormat.Format32bppArgb);
     this.ObjectOpacity                = this.DockSettings.Background.DefaultOpacity;
     this.SetZLevel();
     this.SetBitmap();
 }
Пример #4
0
 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;
 }
Пример #5
0
 public FileOps(IntPtr theParent, LanguageLoader.LanguageLoader LanguageData, SettingsLoader.SettingsLoader SettingsData)
 {
     this.ParentObjectHandle = theParent;
     this.Language           = LanguageData;
     this.DockSettings       = SettingsData;
 }