Esempio n. 1
0
        void ReleaseDesignerOutlets()
        {
            if (MessagesTable != null)
            {
                MessagesTable.Dispose();
                MessagesTable = null;
            }

            if (MessageText != null)
            {
                MessageText.Dispose();
                MessageText = null;
            }

            if (SendButton != null)
            {
                SendButton.Dispose();
                SendButton = null;
            }

            if (ReconnectButton != null)
            {
                ReconnectButton.Dispose();
                ReconnectButton = null;
            }
        }
Esempio n. 2
0
        public void resize(int x, int y, int w, int h)
        {
            Geometry.Rectangle r = new Geometry.Rectangle(w, h, new Geometry.Point(x, y));
            var a = r.Split(1, 4, 0.05f, 0.05f);

            PalleteButton.Reorient(a[0]);
            AddProductButton.Reorient(a[1]);
            ReconnectButton.Reorient(a[2]);
            BypassButton.Reorient(a[3]);
        }