private void button_TestMode_VirtualVendor_Click(object sender, EventArgs e) { vendor = WhichVendor.Test; this.Hide(); Form f1 = (Form)Application.OpenForms["Form1"]; f1.Enabled = true; }
private void Gooil_Click(object sender, EventArgs e) { vendor = WhichVendor.Gooil; this.Hide(); Form f1 = (Form)Application.OpenForms["Form1"]; f1.Enabled = true; GooilCommunication.GI_Set(); }
private void button_LGD_Click(object sender, EventArgs e) { vendor = WhichVendor.LGD; this.Hide(); var f1 = (Form1)Application.OpenForms["Form1"]; f1.Enabled = true; var richtextboxes = f1.GetRichTextBoxes(); richtextboxes[0].BackColor = Color.White; for (int i = 1; i < richtextboxes.Length; i++) { richtextboxes[i].BackColor = Color.Black; } }
public ChannelWinformAPIFactory(WhichVendor _vendor) { vendor = _vendor; }