public Form1(AuthForm authFrm, Dictionary<string, Dictionary<string, string>> iniSettings) { mainWbemClient = authFrm.Client; ini = iniSettings; InitializeComponent(); // These are used to store the Xml while the XmlVisualizers are not showing Wbem.Net.CimomRequest.OnCimomRequest += this.CimomRequestHandler; Wbem.Net.CimomResponse.OnCimomResponse += this.CimomResponseHandler; CimDataTypeForm.SharedImages = this.imageList1; ImageUtils.ImageList = this.imageList1; //uxtabControl.SelectedIndex = 1; DisplayList(authFrm.ClassList); }
private void changeLoginToolStripMenuItem_Click(object sender, EventArgs e) { AuthForm newAuth = new AuthForm(ini["[Auth]"]); DialogResult result = newAuth.ShowDialog(); if (result == DialogResult.OK) { mainWbemClient = newAuth.Client; DisplayList(newAuth.ClassList); } newAuth.Close(); }