Ejemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Form1 ourBeautifulForm = SingletonForm.getFormInstance();

            Application.Run(ourBeautifulForm);
        }
Ejemplo n.º 2
0
        public void DrawOnForm(Point start, DecentUserControl SenderCntrl)
        {
            this.startPoint.X = start.X + SenderCntrl.Location.X;
            this.startPoint.Y = start.Y + SenderCntrl.Location.Y;
            String txt = startPoint.X.ToString() + " " + startPoint.Y.ToString();

            SingletonForm.getFormInstance().textBoxLocation.Text = txt;
        }