private FormFactions(SaveGameEditor sge, string standardErrorText, CatDatExtractor cde)
 {
     InitializeComponent();
     this.sge          = sge;
     StandardErrorText = standardErrorText;
     this.cde          = cde;
 }
 private FormKnownTypes(SaveGameEditor sge, CatDatExtractor cde, string standardErrorText)
 {
     InitializeComponent();
     this.sge          = sge;
     this.cde          = cde;
     StandardErrorText = standardErrorText;
 }
        public static FormKnownTypes Instance(SaveGameEditor sge, CatDatExtractor cde, string standardErrorText)
        {
            lock (LockInstance)
            {
                if (instance == null)
                {
                    instance = new FormKnownTypes(sge, cde, standardErrorText);
                }

                return(instance);
            }
        }
        public static FormFactions Instance(SaveGameEditor sge, string standardErrorText, CatDatExtractor cde)
        {
            lock (LockInstance)
            {
                if (instance == null)
                {
                    instance = new FormFactions(sge, standardErrorText, cde);
                }

                return(instance);
            }
        }
        public static FormSaveGameInfo Instance(SaveGameEditor sge, string standardErrorText)
        {
            lock (LockInstance)
            {
                if (instance == null)
                {
                    instance = new FormSaveGameInfo(sge, standardErrorText);
                }

                return(instance);
            }
        }
Example #6
0
 private FormPlayerSkunk(SaveGameEditor sge, CatDatExtractor cde, string standardErrorText)
 {
     InitializeComponent();
     this.sge          = sge;
     this.cde          = cde;
     StandardErrorText = standardErrorText;
     comboBoxSkunkScanner.TextChanged   -= comboBoxSkunkScanner_TextChanged;
     comboBoxSkunkEngine.TextChanged    -= comboBoxSkunkEngine_TextChanged;
     comboBoxSkunkShield1.TextChanged   -= comboBoxSkunkShield1_TextChanged;
     comboBoxSkunkShield2.TextChanged   -= comboBoxSkunkShield2_TextChanged;
     comboBoxSkunkSoftware1.TextChanged -= comboBoxSkunkSoftware1_TextChanged;
     comboBoxSkunkSoftware2.TextChanged -= comboBoxSkunkSoftware2_TextChanged;
 }
 void ofd_FileOk(object sender, CancelEventArgs e)
 {
     Logger.Verbose("Browse done.");
     try
     {
         labelSaveLocation.Text = ((OpenFileDialog)sender).FileName;
         sge = null;
         sge = new SaveGameEditor(((OpenFileDialog)sender).FileName, cde);
         ChangeFormState();
     }
     catch (Exception ex)
     {
         Logger.Error("Unable to load the save game into the editor.", ex);
         MessageBox.Show("Unable to load the save game into the editor." + "\n" + StandardErrorText);
     }
 }
 private FormSaveGameInfo(SaveGameEditor sge, string standardErrorText)
 {
     InitializeComponent();
     this.sge          = sge;
     StandardErrorText = standardErrorText;
 }