Ejemplo n.º 1
0
        internal void setPosition(WindowData windowData)
        {
            if((windowData != null) && (windowData.Position.Top >= 0))
            {
                System.Drawing.Rectangle rec_WA = Screen.FromRectangle(windowData.Position).WorkingArea;

                this.Location = new Point((Int32)(rec_WA.X + ((rec_WA.Width - this.Width) / 2)), (Int32)(rec_WA.Y + ((rec_WA.Height - this.Height) / 2)));
            }
        }
Ejemplo n.º 2
0
        public WindowData GetWindowData()
        {
            WindowData retValue     = new WindowData();
            String     Classname    = this.GetType().Name;

            if(Program.DBCon.getIniValue(Classname, "Location") != "")
            {
                retValue.LocationString = Program.DBCon.getIniValue(Classname, "Location",    m_Buffer.LocationString, false);
                retValue.StateString    = Program.DBCon.getIniValue(Classname, "WindowState", m_Buffer.StateString,    false);
            }

            return retValue;
        }
Ejemplo n.º 3
0
        public WindowData GetWindowData()
        {
            WindowData retValue  = new WindowData();
            String     Classname = this.GetType().Name;

            if (Program.DBCon.getIniValue(Classname, "Location") != "")
            {
                retValue.LocationString = Program.DBCon.getIniValue(Classname, "Location", m_Buffer.LocationString, false);
                retValue.StateString    = Program.DBCon.getIniValue(Classname, "WindowState", m_Buffer.StateString, false);
            }

            return(retValue);
        }