Exemple #1
0
        private void moveWindow(int xPos, int yPos, Color color)
        {
            searchWindow           = new FloatingWindow(xPos, yPos);
            searchWindow.BackColor = color;
            Label label    = searchWindow.Controls.Find("colorText", true).FirstOrDefault() as Label;
            Label position = searchWindow.Controls.Find("position", true).FirstOrDefault() as Label;

            position.Text = "( " + xPos + ", " + yPos + " )";
            label.Text    = "(" + color.R + ", " + color.G + ", " + color.B + " )";
            searchWindow.Show();
            Application.OpenForms["FloatingWindow"].BringToFront();
        }