コード例 #1
0
 public options_panel(Button button, ButtonSettings settings)
 {
     this.settings = settings;
     this.button   = button;
     InitializeComponent();
     bName.Text    = button.Text;
     bCommand.Text = settings.button_print;
 }
コード例 #2
0
 private void Anybutton_Click(object sender, EventArgs e)
 {
     if (_setting == false)
     {
         ButtonSettings temp = buttons[(Button)sender];
         _master.Send_Data(temp.button_print);
     }
     else
     {
         ButtonSettings buttonSettings;
         buttons.TryGetValue((Button)sender, out buttonSettings);
         options_panel options = new options_panel((Button)sender, buttonSettings);
         options.Show();
     }
 }