/// <summary> /// Initializes a new instance of the ItemProperties class. /// </summary> public ItemProperties(MainForm instance) : base(instance.ServiceProvider) { this.Owner = instance; this.InitializeComponent(); #region Apply custom font this.ButtonOK.Font = FontService.GetFontAlbertusMTLight(12F); this.labelPrefixProperties.Font = FontService.GetFontAlbertusMTLight(11.25F); this.labelBaseItemProperties.Font = FontService.GetFontAlbertusMTLight(11.25F); this.checkBoxFilterExtraInfo.Font = FontService.GetFontAlbertusMTLight(11.25F); this.labelSuffixProperties.Font = FontService.GetFontAlbertusMTLight(11.25F); this.Font = FontService.GetFontAlbertusMT(9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); #endregion this.Text = Resources.ItemPropertiesText; this.ButtonOK.Text = Resources.GlobalOK; this.labelPrefixProperties.Text = Resources.ItemPropertiesLabelPrefixProperties; this.labelBaseItemProperties.Text = Resources.ItemPropertiesLabelBaseItemProperties; this.labelSuffixProperties.Text = Resources.ItemPropertiesLabelSuffixProperties; this.checkBoxFilterExtraInfo.Text = Resources.ItemPropertiesCheckBoxLabelFilterExtraInfo; this.DrawCustomBorder = true; }
/// <summary> /// Initializes a new instance of the SearchDialog class. /// </summary> public SearchDialog(MainForm instance) : base(instance.ServiceProvider) { this.Owner = instance; this.InitializeComponent(); #region Apply custom font this.searchLabel.Font = FontService.GetFontAlbertusMT(9F); this.searchTextBox.Font = FontService.GetFontAlbertusMT(9F); this.findButton.Font = FontService.GetFontAlbertusMTLight(12F); this.cancelButton.Font = FontService.GetFontAlbertusMTLight(12F); this.Font = FontService.GetFontAlbertusMT(9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)(0)); #endregion // Load localized strings this.Text = Resources.SearchDialogCaption; this.searchLabel.Text = Resources.SearchDialogText; this.findButton.Text = Resources.MainFormSearchButtonText; this.cancelButton.Text = Resources.GlobalCancel; this.searchTextBox.Focus(); this.NormalizeBox = false; }
/// <summary> /// Initializes a new instance of the VaultMaintenanceDialog class. /// </summary> public VaultMaintenanceDialog(MainForm instance) : base(instance.ServiceProvider) { this.Owner = instance; this.InitializeComponent(); #region Apply custom font this.targetTextBox.Font = FontService.GetFontAlbertusMTLight(11F); this.instructionsLabel.Font = FontService.GetFontAlbertusMTLight(11F); this.okayButton.Font = FontService.GetFontAlbertusMTLight(12F); this.cancelButton.Font = FontService.GetFontAlbertusMTLight(12F); this.vaultListComboBox.Font = FontService.GetFontAlbertusMTLight(11F); this.newRadioButton.Font = FontService.GetFontAlbertusMTLight(11.25F); this.selectFunctionGroupBox.Font = FontService.GetFontAlbertusMTLight(11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.renameRadioButton.Font = FontService.GetFontAlbertusMTLight(11.25F); this.copyRadioButton.Font = FontService.GetFontAlbertusMTLight(11.25F); this.deleteRadioButton.Font = FontService.GetFontAlbertusMTLight(11.25F); this.sourceLabel.Font = FontService.GetFontAlbertusMTLight(11F); this.targetLabel.Font = FontService.GetFontAlbertusMTLight(11F); this.Font = FontService.GetFontAlbertusMT(9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); #endregion // Load the localized resources this.Text = Resources.MaintenanceText; this.copyRadioButton.Text = Resources.MaintenanceRbCopy; this.deleteRadioButton.Text = Resources.MaintenanceRbDelete; this.newRadioButton.Text = Resources.MaintenanceRbNew; this.renameRadioButton.Text = Resources.MaintenanceRbRename; this.selectFunctionGroupBox.Text = Resources.MaintenanceGroup; this.selectFunctionGroupBox.ForeColor = Color.White; this.cancelButton.Text = Resources.GlobalCancel; this.okayButton.Text = Resources.GlobalOK; this.instructionsLabel.Text = Resources.MaintenanceInstructions; this.sourceLabel.Text = Resources.MaintenanceSource; this.targetLabel.Text = Resources.MaintenanceTarget; // Set options for Right to Left reading. if (CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft) { rightToLeftOptions = MessageBoxOptions.RightAlign | MessageBoxOptions.RtlReading; } this.DrawCustomBorder = true; // Load the invalid characters this.invalidChars = Path.GetInvalidFileNameChars(); this.GetVaultList(); }
/// <summary> /// Initializes a new instance of the ResultsDialog class. /// </summary> public ResultsDialog(MainForm instance) : base(instance.ServiceProvider) { this.Owner = instance; this.InitializeComponent(); #region Apply custom font this.resultsDataGridView.ColumnHeadersDefaultCellStyle.Font = FontService.GetFontAlbertusMT(9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.item.DefaultCellStyle.Font = FontService.GetFontAlbertusMT(9F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.quality.DefaultCellStyle.Font = FontService.GetFontAlbertusMT(9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.containerName.DefaultCellStyle.Font = FontService.GetFontAlbertusMT(9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.containerType.DefaultCellStyle.Font = FontService.GetFontAlbertusMT(9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.level.DefaultCellStyle.Font = FontService.GetFontAlbertusMT(9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Font = FontService.GetFontAlbertusMT(9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); #endregion this.resultsList = new List <Result>(); ////this.selectedResult = new Result(); this.item.HeaderText = Resources.ResultsItem; this.containerName.HeaderText = Resources.ResultsContainer; this.containerType.HeaderText = Resources.ResultsContainerType; this.quality.HeaderText = Resources.ResultsQuality; this.level.HeaderText = Resources.ResultsLevel; this.NormalizeBox = false; this.DrawCustomBorder = true; this.FormDesignRatio = 0.0F; //// (float)this.Height / (float)this.Width; ////this.FormMaximumSize = new Size(this.Width * 2, this.Height * 2); ////this.FormMinimumSize = new Size( ////Convert.ToInt32((float)this.Width * 0.4F), ////Convert.ToInt32((float)this.Height * 0.4F)); this.OriginalFormSize = this.Size; this.OriginalFormScale = 1.0F; this.LastFormSize = this.Size; }
public MainForm( IServiceProvider serviceProvider , ILogger <MainForm> log , SessionContext sessionContext , IPlayerService playerService , IVaultService vaultService , ISearchService searchService , IStashService stashService , IFontService fontService ) : base(serviceProvider) { this.userContext = sessionContext; this.playerService = playerService; this.vaultService = vaultService; this.searchService = searchService; this.stashService = stashService; Log = log.Logger; Log.Info("TQVaultAE Initialization !"); InitForm(); #region Apply custom font & scaling this.exitButton.Font = FontService.GetFontAlbertusMTLight(12F, UIService.Scale); ScaleControl(this.UIService, this.exitButton); this.characterComboBox.Font = FontService.GetFontAlbertusMTLight(13F, UIService.Scale); ScaleControl(this.UIService, this.characterComboBox); this.characterLabel.Font = FontService.GetFontAlbertusMTLight(11F, UIService.Scale); ScaleControl(this.UIService, this.characterLabel); ScaleControl(this.UIService, this.itemTextPanel); ScaleControl(this.UIService, this.itemText); this.vaultListComboBox.Font = FontService.GetFontAlbertusMTLight(13F, UIService.Scale); ScaleControl(this.UIService, this.vaultListComboBox); this.vaultLabel.Font = FontService.GetFontAlbertusMTLight(11F, UIService.Scale); ScaleControl(this.UIService, this.vaultLabel); this.configureButton.Font = FontService.GetFontAlbertusMTLight(12F, UIService.Scale); ScaleControl(this.UIService, this.configureButton); this.customMapText.Font = FontService.GetFontAlbertusMT(11.25F, UIService.Scale); ScaleControl(this.UIService, this.customMapText); this.panelSelectButton.Font = FontService.GetFontAlbertusMTLight(12F, UIService.Scale); ScaleControl(this.UIService, this.panelSelectButton); this.secondaryVaultListComboBox.Font = FontService.GetFontAlbertusMTLight(11F, UIService.Scale); ScaleControl(this.UIService, this.secondaryVaultListComboBox); this.aboutButton.Font = FontService.GetFontAlbertusMTLight(8.25F, UIService.Scale); ScaleControl(this.UIService, this.aboutButton); this.titleLabel.Font = FontService.GetFontAlbertusMTLight(24F, UIService.Scale); ScaleControl(this.UIService, this.titleLabel); this.searchButton.Font = FontService.GetFontAlbertusMTLight(12F, UIService.Scale); ScaleControl(this.UIService, this.searchButton); #endregion if (TQDebug.DebugEnabled) { // Write this version into the debug file. Log.DebugFormat(CultureInfo.InvariantCulture, "Current TQVault Version: {0}", this.currentVersion); Log.Debug(string.Empty); Log.Debug("Debug Levels"); Log.DebugFormat(CultureInfo.InvariantCulture, "ARCFileDebugLevel: {0}", TQDebug.ArcFileDebugLevel); Log.DebugFormat(CultureInfo.InvariantCulture, "DatabaseDebugLevel: {0}", TQDebug.DatabaseDebugLevel); Log.DebugFormat(CultureInfo.InvariantCulture, "ItemAttributesDebugLevel: {0}", TQDebug.ItemAttributesDebugLevel); Log.DebugFormat(CultureInfo.InvariantCulture, "ItemDebugLevel: {0}", TQDebug.ItemDebugLevel); Log.Debug(string.Empty); } // Set up Item strings Item.ItemWith = Resources.ItemWith; Item.ItemRelicBonus = Resources.ItemRelicBonus; Item.ItemRelicCompleted = Resources.ItemRelicCompleted; Item.ItemQuest = Resources.ItemQuest; Item.ItemSeed = Resources.ItemSeed; Item.ItemIT = Resources.ItemIT; Item.ItemRagnarok = Resources.ItemRagnarok; Item.ItemAtlantis = Resources.ItemAtlantis; Item.ShowSkillLevel = Config.Settings.Default.ShowSkillLevel; // Process the mouse scroll wheel to cycle through the vaults. this.MouseWheel += new MouseEventHandler(this.MainFormMouseWheel); }
public MainForm( IServiceProvider serviceProvider , ILogger <MainForm> log , SessionContext sessionContext , IPlayerService playerService , IVaultService vaultService , ISearchService searchService , IStashService stashService , IFontService fontService ) : base(serviceProvider) { this.userContext = sessionContext; this.playerService = playerService; this.vaultService = vaultService; this.searchService = searchService; this.stashService = stashService; Log = log.Logger; Log.Info("TQVaultAE Initialization !"); InitForm(); #region Apply custom font & scaling this.exitButton.Font = FontService.GetFontAlbertusMTLight(12F, UIService.Scale); ScaleControl(this.UIService, this.exitButton); this.characterComboBox.Font = FontService.GetFontAlbertusMTLight(13F, UIService.Scale); ScaleControl(this.UIService, this.characterComboBox, false); this.characterLabel.Font = FontService.GetFontAlbertusMTLight(11F, UIService.Scale); ScaleControl(this.UIService, this.characterLabel, false); this.itemText.Font = FontService.GetFontAlbertusMTLight(11F, FontStyle.Bold, UIService.Scale); this.vaultListComboBox.Font = FontService.GetFontAlbertusMTLight(13F, UIService.Scale); ScaleControl(this.UIService, this.vaultListComboBox, false); this.vaultLabel.Font = FontService.GetFontAlbertusMTLight(11F, UIService.Scale); ScaleControl(this.UIService, this.vaultLabel, false); this.configureButton.Font = FontService.GetFontAlbertusMTLight(12F, UIService.Scale); ScaleControl(this.UIService, this.configureButton); this.customMapText.Font = FontService.GetFontAlbertusMT(11.25F, UIService.Scale); ScaleControl(this.UIService, this.customMapText, false); this.showVaulButton.Font = FontService.GetFontAlbertusMTLight(12F, UIService.Scale); ScaleControl(this.UIService, this.showVaulButton); this.secondaryVaultListComboBox.Font = FontService.GetFontAlbertusMTLight(11F, UIService.Scale); ScaleControl(this.UIService, this.secondaryVaultListComboBox, false); this.aboutButton.Font = FontService.GetFontAlbertusMTLight(8.25F, UIService.Scale); ScaleControl(this.UIService, this.aboutButton); this.titleLabel.Font = FontService.GetFontAlbertusMTLight(24F, UIService.Scale); ScaleControl(this.UIService, this.titleLabel); this.searchButton.Font = FontService.GetFontAlbertusMTLight(12F, UIService.Scale); ScaleControl(this.UIService, this.searchButton); ScaleControl(this.UIService, this.tableLayoutPanelMain); #endregion if (TQDebug.DebugEnabled) { // Write this version into the debug file. Log.DebugFormat(CultureInfo.InvariantCulture, "Current TQVault Version: {0}", this.currentVersion); Log.Debug(string.Empty); Log.Debug("Debug Levels"); Log.DebugFormat(CultureInfo.InvariantCulture, "ARCFileDebugLevel: {0}", TQDebug.ArcFileDebugLevel); Log.DebugFormat(CultureInfo.InvariantCulture, "DatabaseDebugLevel: {0}", TQDebug.DatabaseDebugLevel); Log.DebugFormat(CultureInfo.InvariantCulture, "ItemAttributesDebugLevel: {0}", TQDebug.ItemAttributesDebugLevel); Log.DebugFormat(CultureInfo.InvariantCulture, "ItemDebugLevel: {0}", TQDebug.ItemDebugLevel); Log.Debug(string.Empty); } // Process the mouse scroll wheel to cycle through the vaults. this.MouseWheel += new MouseEventHandler(this.MainFormMouseWheel); }