Beispiel #1
0
        public void Mapping_Btn_Click(object sender, EventArgs e)
        {
            if (playbackEngine == null)
            {
                addText("You must select a device first\n\n", Color.Red);
                return;
            }
            MappingForm mappingForm;

            mappingForm = new MappingForm(this);
            mappingForm.Show(this);
        }
Beispiel #2
0
 private void OK_Btn_Click(object sender, EventArgs e)
 {
     if (sourceList.SelectedItems.Count > 0)
     {
         mainForm.setDeviceName(sourceList.SelectedItems[0].Text);
         mainForm.addText($"select device: {sourceList.SelectedItems[0].Text}\n", Color.Black);
         using (var mappingForm = new MappingForm(mainForm))
         {
             mappingForm.OK_Btn_Click(sender, e);
         }
     }
     this.Close();
 }