コード例 #1
0
ファイル: FormSettings.cs プロジェクト: xiaoxin777/TS-SE-Tool
        public FormSettings()
        {
            InitializeComponent();

            this.Icon = Utilities.TS_Graphics.IconFromImage(MainForm.ProgUIImgsDict["Settings"]);

            this.SuspendLayout();

            try
            {
                string translatedString = MainForm.ResourceManagerMain.GetString(this.Name, Thread.CurrentThread.CurrentUICulture);
                if (translatedString != null)
                {
                    this.Text = translatedString;
                }
            }
            catch
            { }

            MainForm.HelpTranslateFormMethod(this, toolTip, Thread.CurrentThread.CurrentUICulture);

            CorrectControlsPositions();
            this.ResumeLayout();

            MainForm.LoadConfig();
            PopulateControls();
        }
コード例 #2
0
        public FormShareUserColors()
        {
            InitializeComponent();
            this.Icon = Properties.Resources.MainIco;

            try
            {
                string translatedString = MainForm.ResourceManagerMain.GetString(this.Name, Thread.CurrentThread.CurrentUICulture);
                if (translatedString != null)
                {
                    this.Text = translatedString;
                }
            }
            catch
            {
            }

            MainForm.HelpTranslateFormMethod(this, MainForm.ResourceManagerMain, Thread.CurrentThread.CurrentUICulture);

            CorrectControlsPositions();

            PopulateFormControlsk();

            buttonReplaceColors.Enabled    = false;
            groupBoxImportedColors.Visible = false;

            this.Size = new Size(this.Size.Width, 209);
        }
コード例 #3
0
        public FormAddCustomFolder()
        {
            InitializeComponent();
            this.Icon = Properties.Resources.MainIco;

            try
            {
                string translatedString = MainForm.ResourceManagerMain.GetString(this.Name, Thread.CurrentThread.CurrentUICulture);
                if (translatedString != null)
                {
                    this.Text = translatedString;
                }
            }
            catch
            {
            }

            MainForm.HelpTranslateFormMethod(this, MainForm.ResourceManagerMain, Thread.CurrentThread.CurrentUICulture);

            ChangeCustomPathListVisibility();
            CustomPathsArr = new Dictionary <string, List <string> >();//(MainForm.ProgSettingsV.CustomPaths);
            foreach (KeyValuePair <string, List <string> > k1 in MainForm.ProgSettingsV.CustomPaths)
            {
                List <string> tmp = new List <string>();
                foreach (string k2 in k1.Value)
                {
                    tmp.Add(k2);
                }
                CustomPathsArr.Add(k1.Key, tmp);
            }

            radioButtonGameTypeETS2.Checked = true;
        }
コード例 #4
0
        public FormProgramSettings()
        {
            InitializeComponent();
            this.Icon = Properties.Resources.MainIco;

            this.SuspendLayout();

            try
            {
                string translatedString = MainForm.ResourceManagerMain.GetString(this.Name, Thread.CurrentThread.CurrentUICulture);
                if (translatedString != null)
                {
                    this.Text = translatedString;
                }
            }
            catch
            {
            }

            MainForm.HelpTranslateFormMethod(this, MainForm.ResourceManagerMain, Thread.CurrentThread.CurrentUICulture);

            this.ResumeLayout();

            LoadSettings();
        }
コード例 #5
0
        public FormProgramSettings()
        {
            InitializeComponent();

            this.Icon = Utilities.TS_Graphics.IconFromImage(MainForm.ProgUIImgsDict["ProgramSettings"]);

            this.SuspendLayout();

            try
            {
                string translatedString = MainForm.ResourceManagerMain.GetString(this.Name, Thread.CurrentThread.CurrentUICulture);
                if (translatedString != null)
                {
                    this.Text = translatedString;
                }
            }
            catch
            { }

            MainForm.HelpTranslateFormMethod(this, null, Thread.CurrentThread.CurrentUICulture);

            this.ResumeLayout();

            LoadSettings();
        }
コード例 #6
0
ファイル: FormAboutBox.cs プロジェクト: xiaoxin777/TS-SE-Tool
        public FormAboutBox()
        {
            InitializeComponent();

            this.Icon = Utilities.TS_Graphics.IconFromImage(MainForm.ProgUIImgsDict["Info"]);

            //var MainForm = Application.OpenForms.OfType<FormMain>().Single();
            MainForm.HelpTranslateFormMethod(this, null, Thread.CurrentThread.CurrentUICulture);
            //MainForm.ClearDatabase();

            Text = String.Format("About {0}", AssemblyTitle);
            labelProductName.Text   = AssemblyProduct;
            labelVersion.Text       = String.Format("Version {0} (alpha)", AssemblyVersion);
            labelCopyright.Text     = AssemblyCopyright;
            textBoxDescription.Text = "This program created by\r\nLIPtoH <*****@*****.**>\r\nhttps://github.com/LIPtoH/TS-SE-Tool\r\n\r\n" +
                                      "Tools and projects used in this project:\r\n\r\n" +
                                      "SII Decrypt\r\nhttps://github.com/ncs-sniper/SII_Decrypt\r\n\r\n" +
                                      "PsColorPicker\r\nhttps://github.com/exectails/PsColorPicker\r\n\r\n" +
                                      "SharpZipLib\r\nhttps://github.com/icsharpcode/SharpZipLib\r\n\r\n" +
                                      "SqlCeBulkCopy\r\nhttps://github.com/ErikEJ/SqlCeBulkCopy\r\n\r\n" +
                                      "DDSImageParser.cs\r\nhttps://gist.github.com/soeminnminn/e9c4c99867743a717f5b\r\n\r\n" +
                                      "TGASharpLib\r\nhttps://github.com/ALEXGREENALEX/TGASharpLib\r\n\r\n" +
                                      "FlexibleMessageBox\r\nhttp://www.codeproject.com/Articles/601900/FlexibleMessageBox";

            labelETS2version.Text = String.Join(" - ", MainForm.SupportedSavefileVersionETS2.Select(p => p.ToString()).ToArray()) + " (" + MainForm.SupportedGameVersionETS2 + ")";
            labelATSversion.Text  = String.Join(" - ", MainForm.SupportedSavefileVersionETS2.Select(p => p.ToString()).ToArray()) + " (" + MainForm.SupportedGameVersionATS + ")";

            try
            {
                string translatedString = MainForm.ResourceManagerMain.GetString(this.Name, Thread.CurrentThread.CurrentUICulture);
                if (translatedString != null)
                {
                    this.Text = String.Format(translatedString, AssemblyTitle);
                }
                else
                {
                    this.Text = String.Format("About {0}", AssemblyTitle);
                }
            }
            catch
            {
            }

            try
            {
                string translatedString = MainForm.ResourceManagerMain.GetString(labelVersion.Name, Thread.CurrentThread.CurrentUICulture);
                if (translatedString != null)
                {
                    labelVersion.Text = String.Format(translatedString, AssemblyVersion);
                }
                else
                {
                    labelVersion.Text = String.Format("Version {0} (alpha)", AssemblyVersion);
                }
            }
            catch
            {
            }
        }
コード例 #7
0
        public FormSplash()
        {
            InitializeComponent();

            MainForm.HelpTranslateFormMethod(this, null, Thread.CurrentThread.CurrentUICulture);

            labelTSSE.Text = Utilities.AssemblyData.AssemblyProduct;

            string translatedString = MainForm.ResourceManagerMain.GetString(labelVersion.Name, Thread.CurrentThread.CurrentUICulture);

            if (translatedString != null)
            {
                labelVersion.Text = String.Format(translatedString, Utilities.AssemblyData.AssemblyVersion);
            }
            else
            {
                labelVersion.Text = String.Format("{0} (alpha)", Utilities.AssemblyData.AssemblyVersion);
            }
        }
コード例 #8
0
        public FormShareUserColors()
        {
            InitializeComponent();
            this.Icon = Properties.Resources.MainIco;

            try
            {
                string translatedString = MainForm.ResourceManagerMain.GetString(this.Name, Thread.CurrentThread.CurrentUICulture);
                if (translatedString != null)
                {
                    this.Text = translatedString;
                }
            }
            catch
            { }

            SaveVersion = MainForm.MainSaveFileInfoData.Version;
            MainForm.HelpTranslateFormMethod(this, null, Thread.CurrentThread.CurrentUICulture);

            int colorcount = MainForm.UserColorsList.Count;

            UserColorsB = new Button[colorcount];

            if (SaveVersion >= 49)
            {
                colorcount = colorcount / 4;
            }

            UserColorsCB = new CheckBox[colorcount];

            CorrectControlsPositions();

            PopulateFormControlsk();

            buttonReplaceColors.Enabled    = false;
            groupBoxImportedColors.Visible = false;

            ChangeFormSize(false);
        }