예제 #1
0
        private void uxLstView_Items_DoubleClick(object sender, EventArgs e)
        {
            // Get the selected Property / Method / Qualifier's name
            string itemName = uxLstView_Items.SelectedItems[0].SubItems[0].Text;
            Form tmpForm = null;

            switch (uxLstView_Items.SelectedItems[0].SubItems[1].Text.ToLower())
            {
                case "qualifier":
                    tmpForm = new CimQualifierForm(DisplayParameter.Qualifiers[itemName]);
                    tmpForm.ShowDialog();
                    break;
            }
        }
예제 #2
0
        private void uxLstView_Items_DoubleClick(object sender, EventArgs e)
        {
            string itemName = uxLstView_Items.SelectedItems[0].SubItems[0].Text;
            string type = uxLstView_Items.SelectedItems[0].SubItems[1].Text.ToLower();

            Form tmpForm = null;
            switch (type)
            {
                case "qualifier":
                    tmpForm = new CimQualifierForm(DisplayMethod.Qualifiers[itemName]);
                    tmpForm.ShowDialog();
                    break;
                case "parameter":
                    tmpForm = new CimParameterForm(DisplayMethod.Parameters[itemName]);
                    tmpForm.ShowDialog();
                    break;

            }
        }
예제 #3
0
        private void uxLstView_Class_DoubleClick(object sender, EventArgs e)
        {
            // Get the selected Property / Method / Qualifier's name
            string itemName = uxLstView_Class.SelectedItems[0].SubItems[0].Text;

            GetClassOpSettings gcs = new GetClassOpSettings(treeView1.SelectedNode.Text);
            gcs.IncludeClassOrigin = true;
            gcs.IncludeQualifiers = true;
            gcs.LocalOnly = false;

            CimClass tmpClass = mainWbemClient.GetClass(gcs);

            Form tmpForm = null;
            switch (uxLstView_Class.SelectedItems[0].SubItems[1].Text.ToLower())
            {
                case "qualifier":
                    tmpForm = new CimQualifierForm(tmpClass.Qualifiers[itemName]);
                    tmpForm.ShowDialog();
                    break;

                case "key property":
                case "property":
                    tmpForm = new CimPropertyForm(tmpClass.Properties[itemName]);
                    tmpForm.ShowDialog();
                    break;

                case "method":
                    tmpForm = new CimMethodForm(tmpClass.Methods[itemName]);
                    tmpForm.ShowDialog();
                    break;
            }
        }