private void textBox1_TextChanged(object sender, EventArgs e) { textBox1.Text = CTWLoader_Formating.DialogOpenPath(); if (textBox1.Text.Split('.')[textBox1.Text.Split('.').Length - 1] != "CTWLoader") { textBox1.Text = ""; MessageBox.Show(lng.GetLangText("ErrorFile"), lng.GetLangText("Text"), MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public EthernetPath(LangParam lng) { InitializeComponent(); this.lng = lng; #region Код локализации label1.Text = lng.GetLangText("DownloadingFileCTW"); groupBox1.Text = lng.GetLangText("SaveFile"); groupBox3.Text = lng.GetLangText("UploadFile"); button2.Text = lng.GetLangText("Upload"); label5.Text = lng.GetLangText("PathToFile"); label6.Text = lng.GetLangText("DescreptFile"); label2.Text = lng.GetLangText("SelectFile"); button1.Text = lng.GetLangText("Downloading"); загрузкаФайлаToolStripMenuItem.Text = lng.GetLangText("UploadingFiles"); скачиваниеФаловToolStripMenuItem.Text = lng.GetLangText("DownloadingFiles"); #endregion }
void lang() { lng = LocalizationSettings.LoadLangParamFromFile(lg, Environment.CurrentDirectory + "\\Localization\\"); button6.Text = lng.GetLangText("Load_Video"); button4.Text = lng.GetLangText("Save_File_Sub"); button3.Text = lng.GetLangText("Added_Sub"); button5.Text = lng.GetLangText("Create_Video"); label1.Text = lng.GetLangText("Start_Time_Text"); label2.Text = lng.GetLangText("End_Time_Text"); label3.Text = lng.GetLangText("Text"); toolStripStatusLabel1.Text = lng.GetLangText("Status"); }
private void button6_Click(object sender, EventArgs e) { OpenFileDialog opg = new OpenFileDialog(); opg.Filter = "mp4|*.mp4|avi|*.avi|ts|*.ts|mpg|*.mpg|wmv|*.wmv"; opg.Title = ""; if (opg.ShowDialog() == DialogResult.OK) { Filename = opg.SafeFileName.Split('.')[0]; Filenamerash = opg.SafeFileName; Filenameput = opg.FileName; axWindowsMediaPlayer1.URL = opg.FileName; toolStripStatusLabel1.Text = lng.GetLangText("Video_Uploading"); } }