private void btn_InitConfigFile_Click(object sender, EventArgs e) { this.btn_InitConfigFile.Image = global::TestServicePerformance.Properties.Resources.Ball__Red_; //if (!ValidateInit()) return; _RemotingWrapper_config = new RemotingWrapper_config(); try { _RemotingWrapper_config.Init(); this.btn_InitConfigFile.Image = global::TestServicePerformance.Properties.Resources.Ball__Green_; tabControl2.TabIndex = 0; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btn_InitConfigFile_Click(object sender, EventArgs e) { this.btn_InitConfigFile.Image = global::TestServicePerformance.Properties.Resources.Ball__Red_; if (_RemotingWrapper_config == null) { _RemotingWrapper_config = new RemotingWrapper_config(); } try { _RemotingWrapper_config.Init(); dataGridView1.DataSource = null; dataGridView1.Refresh(); dataGridView1.DataSource = _RemotingWrapper_config.RemoteObj.GetServicesList(string.Empty); this.btn_InitConfigFile.Image = global::TestServicePerformance.Properties.Resources.Ball__Green_; tabControl2.TabIndex = 0; } catch (Exception ex) { MessageBox.Show(ex.Message); _RemotingWrapper_config = null; } }
private void btn_InitConfigFile_Click(object sender, EventArgs e) { this.btn_InitConfigFile.Image = global::TestServicePerformance.Properties.Resources.Ball__Red_; if (_RemotingWrapper_config == null) _RemotingWrapper_config = new RemotingWrapper_config(); try { _RemotingWrapper_config.Init(); dataGridView1.DataSource = null; dataGridView1.Refresh(); dataGridView1.DataSource = _RemotingWrapper_config.RemoteObj.GetServicesList(string.Empty); this.btn_InitConfigFile.Image = global::TestServicePerformance.Properties.Resources.Ball__Green_; tabControl2.TabIndex = 0; } catch (Exception ex) { MessageBox.Show(ex.Message); _RemotingWrapper_config = null; } }
private void btn_InitConfigFile_Click(object sender, EventArgs e) { this.btn_InitConfigFile.Image = global::TestServicePerformance.Properties.Resources.Ball__Red_; //if (!ValidateInit()) return; _RemotingWrapper_config = new RemotingWrapper_config(); try { _RemotingWrapper_config.Init(); this.btn_InitConfigFile.Image = global::TestServicePerformance.Properties.Resources.Ball__Green_; tabControl2.TabIndex = 0; } catch (Exception ex) { MessageBox.Show(ex.Message); } }