Example #1
0
        private void InitializeControls()
        {
            VersionLabel.Text = ApplicationService.GetVersion();
            ArcticFoxConfigurationButton.Click += StartArcticFoxConfiguration;
            DeviceMonitorButton.Click          += StartDeviceMonitor;
            ScreenshooterButton.Click          += StartScreenshooter;
            FirmwareUpdaterButton.Click        += StartFirmwareUpdater;

            AboutLinkLabel.Click += (s, e) =>
            {
                                #if DEBUG
                if (System.Diagnostics.Debugger.IsAttached)
                {
                    // Initialize all localizable strings.
                    typeof(LocalizableStrings).GetProperties().ForEach(p => p.GetValue(null, null));
                    // Create exportable lpack.txt
                    var result = LocalizationManager.Instance.GetLanguagePack();
                    System.Diagnostics.Debugger.Break();
                }
                                #endif

                using (var aboutWindow = new AboutWindow())
                {
                    aboutWindow.ShowDialog();
                }
            };
            LanguageMenuButton.Click += (s, e) => LogoPictureBox.Focus();
        }
Example #2
0
 private void LogoListBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if ((string)LogoListBox.SelectedItem != "No Logo")
     {
         string filepath = MyPlugin.GetRoot() + @"Blocks\Logos\" + SelectedBorderSize + @"\" + LogoListBox.SelectedItem;
         GeneralMenu.AcadIconPreview(filepath, LogoPictureBox);
     }
     else
     {
         LogoPictureBox.Image = null;
         LogoPictureBox.Invalidate();
     }
 }
Example #3
0
 public void clearFields()
 {
     try
     {
         RFCTextBox.Text                = string.Empty;
         RazonSocialTextBox.Text        = string.Empty;
         CalleTextBox.Text              = string.Empty;
         MunicipioTextBox.Text          = string.Empty;
         PaisTextBox.Text               = string.Empty;
         CorreoTextBox.Text             = string.Empty;
         EstadoTextBox.Text             = string.Empty;
         CodigoPostalTextBox.Text       = string.Empty;
         TelefonoTextBox.Text           = string.Empty;
         textBoxNumberUsers.Text        = string.Empty;
         PathFileNameTextBox.Text       = string.Empty;
         LogoPictureBox.BackgroundImage = null;
         LogoPictureBox.Update();
     }
     catch {}
 }