public optionsForm() { InitializeComponent(); this.Icon = Icon.ExtractAssociatedIcon( Application.ExecutablePath ); I18N i10n = new I18N( null, this ); //I18N i10n = new I18N( Path.GetFileNameWithoutExtension( Application.ExecutablePath ), this ); }
public FormQRInput() { InitializeComponent(); Application.EnableVisualStyles(); this.Icon = Icon.ExtractAssociatedIcon( Application.ExecutablePath ); I18N i10n = new I18N( null, this); if ( cbWifiNetwork.Items.Count > 0 ) cbWifiNetwork.SelectedIndex = 0; }
public MainForm( string[] args ) { cmdArgs = args; InitializeComponent(); this.Icon = Icon.ExtractAssociatedIcon( Application.ExecutablePath ); //I18N i10n = new I18N( "NGetTextUtils", this, this.toolTip ); I18N i10n = new I18N( Path.GetFileNameWithoutExtension( Application.ExecutablePath ), this, this.toolTip ); //I18N i10n = new I18N( Path.GetFileNameWithoutExtension( Application.ExecutablePath ), this, this.toolTip, new object[] { this.dlgOpen } ); InitUI(); }
public MainForm() { InitializeComponent(); Application.EnableVisualStyles(); Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); I18N i10n = new I18N( null, this ); status.Padding = new Padding( status.Padding.Left, status.Padding.Top, status.Padding.Left, status.Padding.Bottom ); btnQRInput.Image = Icon.ToBitmap(); edText.MaxLength = MAX_TEXT; colorDlg.Color = Color.Cyan; picMaskColor.BackColor = Color.Red; if( cbBarFormat.Items.Count > 0) cbBarFormat.SelectedIndex = 0; loadSettings(); // register the event that is fired after the key press. hook.KeyPressed += new EventHandler<KeyPressedEventArgs>(hookKeyPressed); try { hook.RegisterHotKey(QRUtils.ModifierKeys.Win, Keys.Q); statusLabelHotkey.Text = string.Format( I18N._( "Hotkey: {0}" ), "WIN + Q" ); } catch { MessageBox.Show( this, I18N._( "Failed to bind hotkey Win+Q!" ), I18N._( "Error" ), MessageBoxButtons.OK, MessageBoxIcon.Error ); //status.Items[0] statusLabelHotkey.Text = string.Format( I18N._( "Hotkey: {0}" ), I18N._( "None" ) ); } }