/// <summary> /// Генерация Assembly свойства для билд файла /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void GenAss_Click(object sender, EventArgs e) { NativeMethods.SetFocus(IntPtr.Zero); this.AssProductTextBox.Text = GenX.GetUpdate(); this.AssTitleTextBox.Text = GenX.GenerateIdentifier(15); this.AssDescriptTextBox.Text = GenX.GenerateIdentifier(15); this.AssCompanyTextBox.Text = GenX.GetUpdate(); this.AssCopyrightTextBox.Text = GenX.GenerateIdentifier(15); this.AssVerTextBox.Text = Convert.ToString($"{GenX.Next(10)}.{GenX.Next(10)}.{GenX.Next(10)}.{GenX.Next(10)}"); this.AssFileVerTextBox.Text = Convert.ToString($"{GenX.Next(10)}.{GenX.Next(10)}.{GenX.Next(10)}.{GenX.Next(10)}"); this.AssGuidTextBox.Text = Guid.NewGuid().ToString(); }
private void AutoGenNsis_Click(object sender, EventArgs e) { NativeMethods.SetFocus(IntPtr.Zero); this.CountFiles.Focus(); this.NameTextBox.Text = GenX.GetUpdate(); this.VersionTextBox.Text = Convert.ToString($"{GenX.Next(10)}.{GenX.Next(10)}.{GenX.Next(10)}.{GenX.Next(10)}"); this.CompanyTextBox.Text = GenX.GetUpdate(); this.DescriptTextBox.Text = GenX.GenerateIdentifier(15); this.CopyrightTextBox.Text = GenX.GenerateIdentifier(15); this.FileDescriptTextBox.Text = GenX.GenerateIdentifier(15); this.FileVerTextBox.Text = Convert.ToString($"{GenX.Next(10)}.{GenX.Next(10)}.{GenX.Next(10)}.{GenX.Next(10)}"); this.TradeMarkTextBox.Text = GenX.GenerateIdentifier(4); }