/// <summary> /// Constructeur paramétré. Le fichier spécifié est immédiatement chargé /// </summary> /// <param name="fileToEdit">Nom du fichier MAP à ouvrir</param> public MAPToolForm(string fileToEdit) { InitializeComponent(); entryCountLabel.Text = _ENTRY_COUNT_START_TEXT; // EVO 32 : support StatusLog StatusBarLogManager.AddNewLog(this, toolStripStatusLabel); // EVO 18 : clé par défaut inputKEYFilePath.Text = AppConstants.FOLDER_XML + AppConstants.FILE_MAP_KEY; if (fileToEdit != null) { // Fichier MAP paramétré inputFilePath.Text = fileToEdit; } else { // Fichier MAP par défaut... inputFilePath.Text = Program.ApplicationSettings.TduMainFolder + FileConstants.FOLDER_BNK + MAP.FILE_MAP; } // Ouverture refreshButton_Click(this, new EventArgs()); }
/// <summary> /// Constructeur par défaut /// </summary> public _2DBToDDSForm() { InitializeComponent(); // EVO 32 : StatusLog StatusBarLogManager.AddNewLog(this, toolStripStatusLabel); }
/// <summary> /// Defines window's contents /// </summary> private void _InitializeContents() { StatusBarLogManager.AddNewLog(this, toolStripStatusLabel); // Installer extModelBox.AllowDrop = intModelBox.AllowDrop = rimsFrontBox.AllowDrop = rimsRearBox.AllowDrop = gaugesLowBox.AllowDrop = gaugesHighBox.AllowDrop = soundBox.AllowDrop = true; // Camera-IK tab _InitializeCameraIKContents(); // Datasheet: brand logo string defaultImageName = _GetBrandLogoName(SharedConstants.DEFAULT_REF_BRANDS_DB_VAL); Image defaultImage = Image.FromFile(defaultImageName); brandPictureBox.InitialImage = brandPictureBox.ErrorImage = brandPictureBox.Image = defaultImage; // Lock vehicleEditTabControl.Enabled = false; }
/// <summary> /// Constructeur par défaut /// </summary> public FileBrowserForm() { InitializeComponent(); // Instance _Instance = this; // EVO_32 StatusBarLogManager.AddNewLog(this, contentsStatusLabel); _InitializeContents(); }
/// <summary> /// Defines box contents /// </summary> private void _InitializeContents() { // Logging StatusBarLogManager.AddNewLog(this, toolStripStatusLabel); // ListView groups foreach (DB.Topic anotherTopic in Enum.GetValues(typeof(DB.Topic))) { if (anotherTopic != DB.Topic.None) { _AddGroup(anotherTopic.ToString()); } } }
/// <summary> /// Constructeur principal /// </summary> /// <param name="mapFile">Instance du MAP</param> /// <param name="keyFile">Chemin et nom du fichier de clé (optionnel)</param> public FileListingForm(MAP mapFile, string keyFile) { InitializeComponent(); // EVO 32 StatusBarLogManager.AddNewLog(this, toolStripStatusLabel); leMAP = mapFile; if (!string.IsNullOrEmpty(keyFile)) { laCle = MAP.GetKeyContents(keyFile); keyPath.Text = keyFile; } fileCountLabel.Text = _LABEL_START_TEXT; tduPath.Text = Program.ApplicationSettings.TduMainFolder; }
/// <summary> /// Constructeur paramétré. Le fichier spécifié est immédiatement chargé /// </summary> /// <param name="fileToEdit">Nom du fichier de base de données à ouvrir</param> public DbResourcesEditorForm(string fileToEdit) { InitializeComponent(); entryCountLabel.Text = _ENTRY_COUNT_START_TEXT; // EVO 32 : support StatusLog StatusBarLogManager.AddNewLog(this, toolStripStatusLabel); // Initialisation de la liste de sections dans la BDD courante string[] allTopics = Enum.GetNames(typeof(DB.Topic)); foreach (string anotherTopic in allTopics) { if (!DB.Topic.None.ToString().Equals(anotherTopic)) { catComboBox.Items.Add(anotherTopic); } } catComboBox.SelectedIndex = 0; if (fileToEdit != null) { // Fichier DB paramétré inputFilePath.Text = fileToEdit; openRadioButton.Checked = true; _SetSelectionControls(true); // Ouverture automatique refreshButton_Click(this, new EventArgs()); } else { _SetSelectionControls(false); } }
/// <summary> /// Defines window contents /// </summary> private void _InitializeContents() { Cursor = Cursors.WaitCursor; // Track details group replacedLinkLabel.Text = ""; trackNameLabel.Text = ""; cpLabel.Text = ""; // Game modes foreach (DFE.GameMode anotherMode in Enum.GetValues(typeof(DFE.GameMode))) { if (anotherMode != DFE.GameMode.Unhandled) { gameModeComboBox.Items.Add(anotherMode.ToString()); } } // Game types foreach (DFE.GameType anotherType in Enum.GetValues(typeof(DFE.GameType))) { // Club challenges make game freeze if replace solo or multi spot if (anotherType != DFE.GameType.Unhandled && anotherType != DFE.GameType.Club) { typeComboBox.Items.Add(anotherType.ToString()); } } gameModeComboBox.Text = typeComboBox.Text = ""; descriptionTextBox.Text = ""; // With radars status withRadarsCheckBox.Enabled = false; // Eliminator status eliminatorPanel.Visible = false; // Driving aids foreach (DFE.DrivingAid anotherAid in Enum.GetValues(typeof(DFE.DrivingAid))) { if (anotherAid != DFE.DrivingAid.Unhandled) { drivingAidsComboBox.Items.Add(anotherAid.ToString()); } } // Custom list _RefreshCustomList(); // Explore button string tracksFolder = AppConstants.FOLDER_TRACKS; string buttonLabel = string.Format(_FORMAT_TRACKS_FOLDER_LABEL, tracksFolder); exploreToolStripButton.Text = buttonLabel; // Flags _IsChanged = false; // Status log StatusBarLogManager.AddNewLog(this, statusLabel); StatusBarLogManager.ShowEvent(this, _STATUS_READY); Cursor = Cursors.Default; //} }