private void metroGrid1_DoubleClick(object sender, EventArgs e)
        {
            var rowsCntChck = metroGrid1.SelectedRows.Count;

            if (rowsCntChck == 0 || rowsCntChck > 1)

            {
                DesktopAlert.Show("Input a user first!");
                metroButton3.Enabled = false;
            }
            else
            {
                slidePanel2.BringToFront();
                metroTextBox11.Select();
                slidePanel2.AnimationTime = 1000;
                slidePanel2.SlideSide     = eSlideSide.Left;
                slidePanel2.IsOpen        = true;
                slidePanel1.Enabled       = false;
                metroGrid1.Enabled        = false;
                var rowsCount = metroGrid1.SelectedRows.Count;
                if (rowsCount == 0 || rowsCount > 1)
                {
                    return;
                }
                metroLabel12.Text = metroGrid1.SelectedCells[1].Value.ToString();
                searchUser();
                texiUsers tUsr = new texiUsers();
            }
        }
Exemple #2
0
        private void metroTileItem31_Click(object sender, EventArgs e)
        {
            texiUsers tU = new texiUsers();

            //tU.tabSelect(0);
            tU.ShowDialog();
        }
        private void metroGrid2_DoubleClick(object sender, EventArgs e)
        {
            slidePanel2.BringToFront();
            slidePanel2.AnimationTime = 1000;
            slidePanel2.SlideSide     = eSlideSide.Left;
            slidePanel2.IsOpen        = true;
            metroGrid2.Enabled        = false;
            var rowsCount = metroGrid2.SelectedRows.Count;

            if (rowsCount == 0 || rowsCount > 1)
            {
                return;
            }
            metroLabel11.Text = metroGrid2.SelectedCells[1].Value.ToString();
            clientDetails();
            this.Opacity = 30;
            texiUsers tUsr = new texiUsers();

            tUsr.Opacity = 1;
        }