Beispiel #1
0
 private void listBox_tabs_SelectedIndexChanged(object sender, EventArgs e)
 {
     CurrentOverlayTab  = (OverlayTab)listBox_tabs.SelectedItem;
     panel_form.Enabled = CurrentOverlayTab != null;
     if (panel_form.Enabled)
     {
         PopulateForm(CurrentOverlayTab);
     }
 }
Beispiel #2
0
 private void PopulateForm(OverlayTab overlayTab)
 {
     _init = true;
     numericUpDown_CanvasHeight.Value = overlayTab.Canvas.Height;
     numericUpDown_CanvasWidth.Value  = overlayTab.Canvas.Width;
     numericUpDown_positionX.Value    = overlayTab.Position.X;
     numericUpDown_positionY.Value    = overlayTab.Position.Y;
     textBox_overlayUrl.Text          = overlayTab.Url;
     numericUpDown_scale.Value        = overlayTab.Scale;
     _init = false;
 }
 private void listBox_tabs_SelectedIndexChanged(object sender, EventArgs e)
 {
     CurrentOverlayTab = (OverlayTab)listBox_tabs.SelectedItem;
     PopulateForm();
 }