示例#1
0
 /// <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();
 }
示例#2
0
        /// <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);
        }
示例#3
0
 /// <summary>
 /// Sets the bridge path.
 /// </summary>
 /// <param name="details">The details.</param>
 /// <param name="path">The path.</param>
 private void SetBridgePath(CampaignBridgeDetails details, string path)
 {
     details.BridgeScript = path;
 }