Esempio n. 1
0
        public void ChangeY(Rainmeter.Settings.InstanceSettings Instance, string sY)
        {
            try
            {
                // If the position is changed, make sure the form's auto-location is disabled.
                if (this.StartPosition != FormStartPosition.Manual)
                {
                    this.StartPosition = FormStartPosition.Manual;
                }

                // Notice that we need the position of the parent window for offset location.
                //
                // The Rainmeter class does this for us
                this.Location = new System.Drawing.Point(this.Location.X, Rainmeter.ConfigY(Rainmeter.SkinName(Instance)) + int.Parse(sY));
            }
            catch { }
        }