/// <summary> /// Handles the Load event of the MainForm control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void MainForm_Load(object sender, EventArgs e) { cbd = new CampaignBridgeDetails(); cbd2 = new CampaignBridgeDetails(); csd = new CampaignShipDetails(); csd2 = new CampaignShipDetails(); SetDatabindings(); }
/// <summary> /// Evaluates if the campaign files have already been modified. /// </summary> /// <param name="path">The path.</param> /// <returns></returns> private bool CampaignModified(string path) { bool modified = false; using (CampaignShipDetails ship = new CampaignShipDetails()) using (CampaignBridgeDetails bridge = new CampaignBridgeDetails()) { if (bridge.IsModified(path) || ship.IsModified(path)) { modified = true; } } return(modified); }
/// <summary> /// Sets the ship path. /// </summary> /// <param name="details">The details.</param> /// <param name="path">The path.</param> private void SetShipPath(CampaignShipDetails details, string path) { details.ShipScript = path; }