Ejemplo n.º 1
0
        private void aspectsDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string aspectID = aspectsDataGridView.Rows[e.RowIndex].Cells[0].Value as String;

            if (aspectID == null)
            {
                return;
            }
            AspectViewer av = new AspectViewer(Utilities.getAspect(aspectID), null);

            av.Show();
        }
Ejemplo n.º 2
0
        private void forbiddenDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string id = forbiddenDataGridView.Rows[e.RowIndex].Cells[0].Value.ToString();

            if (Utilities.elementExists(id))
            {
                ElementViewer ev = new ElementViewer(Utilities.getElement(id), null);
                ev.Show();
            }
            else if (Utilities.aspectExists(id))
            {
                AspectViewer av = new AspectViewer(Utilities.getAspect(id), null);
                av.Show();
            }
        }
Ejemplo n.º 3
0
 private void ForbiddenDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (!(forbiddenDataGridView.SelectedCells[0].Value is string id))
     {
         return;
     }
     if (Utilities.ElementExists(id))
     {
         ElementViewer ev = new ElementViewer(Utilities.GetElement(id), null, null);
         ev.Show();
     }
     else if (Utilities.AspectExists(id))
     {
         AspectViewer av = new AspectViewer(Utilities.GetAspect(id), null, null);
         av.Show();
     }
 }
Ejemplo n.º 4
0
        private void ExpulsionsDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string id = expulsionDataGridView.Rows[e.RowIndex].Cells[0].Value.ToString();

            switch (Utilities.GetIdType(id))
            {
            case "aspect":
                AspectViewer av = new AspectViewer(Utilities.GetAspect(id), null, null);
                av.Show();
                break;

            case "element":
                ElementViewer ev = new ElementViewer(Utilities.GetElement(id), null, null);
                ev.Show();
                break;
            }
        }
Ejemplo n.º 5
0
        private void requiredDataGridView_CellDoubleClick_1(object sender, DataGridViewCellEventArgs e)
        {
            string id = requiredDataGridView.SelectedCells[0].Value as String;

            if (id == null)
            {
                return;
            }
            if (Utilities.elementExists(id))
            {
                ElementViewer ev = new ElementViewer(Utilities.getElement(id), null);
                ev.Show();
            }
            else if (Utilities.aspectExists(id))
            {
                AspectViewer av = new AspectViewer(Utilities.getAspect(id), null);
                av.Show();
            }
        }
Ejemplo n.º 6
0
        private void ChallengesDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            AspectViewer av = new AspectViewer(Utilities.GetAspect(challengesDataGridView.Rows[e.RowIndex].Cells[0].Value.ToString()), null, null);

            av.Show();
        }