Exemple #1
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();
 }
 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;
 }