Esempio n. 1
0
        private void panel_Title_MouseDown(object sender, MouseEventArgs e)
        {
            int Tem_Y = 0;

            if (e.Button == MouseButtons.Left)
            {
                Cla_FrmClass.FrmBackCheck();
                Tem_Y             = e.Y;
                FrmClass.FrmPoint = new Point(e.X, Tem_Y);
                FrmClass.CPoint   = new Point(-e.X, -Tem_Y);
                if (FrmClass.Example_List_AdhereTo)
                {
                    Cla_FrmClass.FrmDistanceJob(this, FrmClass.F_List);
                    if (FrmClass.Example_Assistant_AdhereTo)
                    {
                        Cla_FrmClass.FrmDistanceJob(this, FrmClass.F_Libretto);
                    }
                }
                if (FrmClass.Example_Libretto_AdhereTo)
                {
                    Cla_FrmClass.FrmDistanceJob(this, FrmClass.F_Libretto);
                    if (FrmClass.Example_Assistant_AdhereTo)
                    {
                        Cla_FrmClass.FrmDistanceJob(this, FrmClass.F_List);
                    }
                }
                if (!(this.Focused == true || FrmClass.F_List.Focused == true || FrmClass.F_Libretto.Focused == true))
                {
                    FrmClass.F_Screen.Focus();
                    FrmClass.F_List.Focus();
                    FrmClass.F_Libretto.Focus();
                    this.Focus();
                }
            }
        }