/// <summary>
 /// Initializes a new instance of the <see cref="RollingStoneCloseKrento"/> class.
 /// </summary>
 /// <param name="manager">The manager.</param>
 public RollingStoneCloseKrento(StonesManager manager)
     : base(manager)
 {
     ResourceName      = "CloseKrento.png";
     TranslationId     = SR.Keys.PulsarClose;
     TargetDescription = null;
 }
Esempio n. 2
0
 public RollingStoneRunning(StonesManager manager)
     : base(manager)
 {
     CanDrag       = false;
     CanRemove     = false;
     CanConfigure  = false;
     CanChangeType = false;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RollingStoneDate"/> class.
 /// </summary>
 /// <param name="manager">The manager.</param>
 public RollingStoneDate(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName = "Calendar.png";
         Caption      = SR.CurrentDate;
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 4
0
 public RollingStoneRing(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "DefaultRing.png";
         TargetDescription = null;
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 5
0
 protected RollingStoneTask(StonesManager manager)
     : base(manager)
 {
     try
     {
         this.ResourceName    = "UnknownFile.png";
         this.ConfigureStone += new EventHandler(RollingStoneTask_ConfigureStone);
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 6
0
 public RollingStoneRestart(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "Restart.png";
         TranslationId     = SR.Keys.StoneRestart;
         TargetDescription = null;
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 7
0
 public RollingStoneMyIP(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName = "MyIP.png";
         ipAddress    = InteropHelper.CurrentIPAddress;
         Caption      = ipAddress;
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 8
0
 public RollingStoneDisplayBackground(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "AppBackground.png";
         TranslationId     = SR.Keys.AppletDisplayBackground;
         TargetDescription = null;
         Args = "desk.cpl,,0";
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 9
0
 public RollingStoneAccessibilityOptions(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "AppAccess.png";
         TranslationId     = SR.Keys.AppletAccessibilityOptions;
         TargetDescription = null;
         Args = "access.cpl";
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 10
0
 public RollingStoneNetworkConnections(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "AppNetwork.png";
         TranslationId     = SR.Keys.AppletNetworkConnections;
         TargetDescription = null;
         Args = "netconnections";
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 11
0
 public RollingStoneDateAndTime(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "AppDateTime.png";
         TranslationId     = SR.Keys.AppletDateAndTime;
         TargetDescription = null;
         Args = "date/time";
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 12
0
 public RollingStonePrintersAndFaxes(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "AppPrinters.png";
         TranslationId     = SR.Keys.AppletPrintersAndFaxes;
         TargetDescription = null;
         Args = "printers";
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 13
0
 public RollingStoneKeyboard(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "AppKeyboard.png";
         TranslationId     = SR.Keys.AppletKeyboard;
         TargetDescription = null;
         Args = "keyboard";
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 14
0
 public RollingStoneAddRemoveProgram(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "AppAddRemove.png";
         TranslationId     = SR.Keys.AppletAddRemoveProgram;
         TargetDescription = null;
         Args = "appwiz.cpl";
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 15
0
 public RollingStoneUserAccounts(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "AppUsers.png";
         TranslationId     = SR.Keys.AppletUserAccounts;
         TargetDescription = null;
         Args = "userpasswords";
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 16
0
 public RollingStoneAppearance(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "AppAppearance.png";
         TranslationId     = SR.Keys.AppletAppearance;
         TargetDescription = null;
         Args = "color";
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 17
0
 public RollingStoneControlPanel(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "control.png";
         Path              = "control.exe";
         TranslationId     = SR.Keys.ControlPanel;
         TargetDescription = null;
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 18
0
 public RollingStoneFaceBook(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "WebFacebook.png";
         TranslationId     = SR.Keys.Facebook;
         TargetDescription = null;
         Args = "";
         Path = "http://www.facebook.com";
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 19
0
 public RollingStoneWordpress(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "WebWordpress.png";
         TranslationId     = SR.Keys.Wordpress;
         TargetDescription = null;
         Args = "";
         Path = "http://wordpress.com";
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 20
0
 public RollingStoneBlogger(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "WebBlogger.png";
         TranslationId     = SR.Keys.Blogger;
         TargetDescription = null;
         Path = "http://www.blogger.com";
         Args = "";
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 21
0
 public RollingStoneWikipedia(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "WebWiki.png";
         TranslationId     = SR.Keys.Wikipedia;
         TargetDescription = null;
         Path = "http://www.wikipedia.org";
         Args = "";
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 22
0
 public RollingStoneMyComputer(StonesManager manager)
     : base(manager)
 {
     try
     {
         ResourceName      = "MyComputer.png";
         TranslationId     = SR.Keys.StoneMyComputer;
         TargetDescription = null;
         Path = "explorer.exe";
         Args = "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}";
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 23
0
 public RollingStoneFile(StonesManager manager)
     : base(manager)
 {
     try
     {
         AllowDrop         = true;
         DragEnter        += new DragEventHandler(window_DragEnter);
         DragDrop         += new DragEventHandler(window_DragDrop);
         TargetDescription = null;
         ResourceName      = "UnknownFile.png";
     }
     catch (Exception ex)
     {
         throw new StoneConstructorException("Create stone error", ex);
     }
 }
Esempio n. 24
0
        public RollingStoneTime(StonesManager manager)
            : base(manager)
        {
            try
            {
                ResourceName = "Timer.png";
                Caption      = SR.CurrentTime;

                timer          = new System.Windows.Forms.Timer();
                timer.Interval = 1000;
                timer.Tick    += new EventHandler(timer_Tick);
                timer.Start();
            }
            catch (Exception ex)
            {
                throw new StoneConstructorException("Create stone error", ex);
            }
        }
Esempio n. 25
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RollingStoneMyPictures"/> class.
        /// </summary>
        /// <param name="manager">The manager.</param>
        public RollingStoneMyPictures(StonesManager manager)
            : base(manager)
        {
            try
            {
                ResourceName      = "MyPictures.png";
                TranslationId     = SR.Keys.StoneMyPictures;
                TargetDescription = null;
                Path = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);

                AllowDrop = true;
                DragOver += new System.Windows.Forms.DragEventHandler(window_DragOver);
                DragDrop += new System.Windows.Forms.DragEventHandler(window_DragDrop);
            }
            catch (Exception ex)
            {
                throw new StoneConstructorException("Create stone error", ex);
            }
        }
Esempio n. 26
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RollingStoneBase"/> class.
        /// </summary>
        /// <param name="manager">The Krento Stones Manager.</param>
        protected RollingStoneBase(StonesManager manager)
        {
            try
            {
                if (manager == null)
                {
                    throw new ArgumentNullException("manager");
                }

                this.manager          = manager;
                this.window           = new StoneWindow(this);
                nativeGraphics        = GetWindowNativeGraphics();
                window.BufferCreated += new EventHandler(window_BufferCreated);


                window.Width  = manager.StoneSize;
                window.Height = manager.StoneSize;
                window.Text   = SR.WindowText;
                //window.DrawDefaultBackground();
                window.Visible       = false;
                window.TopMostWindow = true;
                window.CanDrag       = true;
                window.MouseDown    += new MouseEventHandler(MouseDownInternalHandler);
                window.MouseUp      += new MouseEventHandler(MouseUpInternalHandler);
                window.MouseClick   += new MouseEventHandler(MouseClickInternalHandler);
                window.MouseEnter   += new EventHandler(MouseEnterInternalHandler);
                window.MouseLeave   += new EventHandler(MouseLeaveInternalHandler);
                window.MoveDelta    += new EventHandler <MoveDeltaEventArgs>(window_MoveDelta);
                window.FadeFinished += new EventHandler <FadeEventArgs>(FadeFinishedInternalHandler);
                window.Shown        += new EventHandler(window_Shown);
                window.Hides        += new EventHandler(window_Hides);
                window.AllowDrop     = false;
                window.AcceptFiles   = false;
                window.ReplaceAlpha((byte)manager.Transparency);
                this.scale = 1.0;
                maxScale   = 1.2;
                maxSize    = (manager.StoneSize / maxScale) - (manager.StoneBorder / 2);
            }
            catch (Exception ex)
            {
                throw new StoneConstructorException(SR.CreateStoneError, ex);
            }
        }
Esempio n. 27
0
        public RollingStoneRecycleBin(StonesManager manager)
            : base(manager)
        {
            try
            {
                ResourceName      = "RecycleBin.png";
                TranslationId     = SR.Keys.StoneRecycleBin;
                TargetDescription = null;
                Path = "explorer.exe";
                Args = "::{645FF040-5081-101B-9F08-00AA002F954E}";

                AllowDrop = true;
                DragOver += new System.Windows.Forms.DragEventHandler(window_DragOver);
                DragDrop += new System.Windows.Forms.DragEventHandler(window_DragDrop);
            }
            catch (Exception ex)
            {
                throw new StoneConstructorException("Create stone error", ex);
            }
        }
Esempio n. 28
0
        public RingSwitcher(StonesManager manager, bool inplace)
        {
            this.manager         = manager;
            items                = new List <KrentoRing>();
            TopMostWindow        = true;
            format.Alignment     = StringAlignment.Center;
            format.LineAlignment = StringAlignment.Near;
            //format.FormatFlags = StringFormatFlags.NoWrap;
            format.Trimming    = StringTrimming.EllipsisCharacter;
            format.FormatFlags = StringFormatFlags.LineLimit;
            overlay            = NativeThemeManager.LoadBitmap("overlay.png");
            shine     = NativeThemeManager.LoadBitmap("shine.png");
            logo      = NativeThemeManager.LoadBitmap("Krento48.png");
            signAdd   = NativeThemeManager.LoadBitmap("SignAdd.png");
            signClose = NativeThemeManager.LoadBitmap("SignClose.png");

            this.inplace = inplace;
            this.Text    = SR.SelectCircle;
            Name         = "RingSwitcher";
            this.Alpha   = 240;
        }
Esempio n. 29
0
 public StoneRingConfig(StonesManager manager)
 {
     InitializeComponent();
     this.manager = manager;
 }
Esempio n. 30
0
 public LoadRingDialog(StonesManager manager)
 {
     InitializeComponent();
     this.manager = manager;
 }