/// <summary> /// Create an alpha blended form with a transparent background that is movable and responds to mouse and key inputs. /// </summary> public BackgroundObject(MainForm TheParent, LanguageLoader.LanguageLoader LanguageData, SettingsLoader.SettingsLoader SettingsData, String Section, Size InitialSize) { Language = LanguageData; DockSettings = SettingsData; ParentObject = TheParent; SectionName = Section; //WorkingObjectData = TheData; ObjectSize = InitialSize; InitializeComponent(); DoubleBuffered = true; this.AnimationTimer.Tick += new System.EventHandler(this.AnimationTimer_Tick); AnimationTimer.Interval = 30; TopMost = true; ShowInTaskbar = false; AllowDrop = true; LeftMouseButtonDown = false; ThisObjectMovedWithLeftMouse = false; ObjectBitmap = new Bitmap(1, 1, System.Drawing.Imaging.PixelFormat.Format32bppArgb); OverlayBitmap = new Bitmap(1, 1, System.Drawing.Imaging.PixelFormat.Format32bppArgb); ObjectOpacity = 255; SetBitmap(); }
/// <summary> /// Create an alpha blended form with a transparent background that is movable and responds to mouse and key inputs. /// </summary> public DockItemObject(MainForm TheParent, LanguageLoader.LanguageLoader LanguageData, SettingsLoader.SettingsLoader SettingsData, DockItemSettingsLoader.DockItemSettingsLoader DockItemData, String SectionName, Size InitialSize, String Path) { Language = LanguageData; DockSettings = SettingsData; ParentObject = TheParent; DockItemSettings = DockItemData; DockItemSectionName = SectionName; ObjectSize = InitialSize; if (DockItemSectionName != null && DockItemSectionName != "") { FileOperations = new FileOps.FileOps(@DockItemSettings.GetEntry(DockItemSectionName, "Args")); } else { FileOperations = new FileOps.FileOps(@Path); } InitializeComponent(); TopMost = true; ShowInTaskbar = false; AllowDrop = true; LeftMouseButtonDown = false; ThisObjectMovedWithLeftMouse = false; ObjectBitmap = new Bitmap(1, 1, System.Drawing.Imaging.PixelFormat.Format32bppArgb); OverlayBitmap = new Bitmap(1, 1, System.Drawing.Imaging.PixelFormat.Format32bppArgb); ObjectOpacity = 255; PreviousOpacity = ObjectOpacity; SetBitmap(); }
public MainForm() { DockSettings = new SettingsLoader.SettingsLoader(Application.StartupPath + "\\System\\Settings\\Config.ini"); LanguageWords = new LanguageLoader.LanguageLoader(Application.StartupPath + DockSettings.Language.path); DockItemSettings = new DockItemSettingsLoader.DockItemSettingsLoader(Application.StartupPath + "\\System\\Settings\\DockItemData.ini"); InitializeComponent(); MainDockObjects = new ArrayList(); InitializeBackgroundObject(); InitializeMouseHook(); InitializeCentreObject(); ShowLevel(ROOT_LEVEL); }
/// <summary> /// Create an alpha blended form with a transparent background that is movable and responds to mouse and key inputs. /// </summary> public CentreObject(MainForm TheParent, LanguageLoader.LanguageLoader LanguageData, SettingsLoader.SettingsLoader SettingsData, String Section, Size InitialSize) { Language = LanguageData; DockSettings = SettingsData; ParentObject = TheParent; ObjectSize = InitialSize; SectionName = Section; InitializeComponent(); TopMost = true; ShowInTaskbar = false; AllowDrop = true; LeftMouseButtonDown = false; ThisObjectMovedWithLeftMouse = false; ObjectBitmap = new Bitmap(1, 1, System.Drawing.Imaging.PixelFormat.Format32bppArgb); OverlayBitmap = new Bitmap(1, 1, System.Drawing.Imaging.PixelFormat.Format32bppArgb); ObjectOpacity = 255; PreviousOpacity = ObjectOpacity; SetBitmap(); }