本文整理汇总了C#中VersionInfo类的典型用法代码示例。如果您正苦于以下问题:C# VersionInfo类的具体用法?C# VersionInfo怎么用?C# VersionInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VersionInfo类属于命名空间,在下文中一共展示了VersionInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: VersionMini
public VersionMini(VersionInfo vers, FTObjects ftobjects)
{
InitializeComponent();
m_VersionInfo = vers;
m_FTObjects = ftobjects;
SetVersion();
}
示例2: VersionLeaf
public VersionLeaf(VersionInfo vers)
{
this.m_VersionInfo = vers;
this.Visible = true;
InitializeComponent();
if (m_VersionInfo != null)
{
this.VersionLabelBig.Text = m_VersionInfo.versionName;
}
else
{
this.VersionLabelBig.Text = "Big Version";
}
if (m_VersionInfo != null && m_VersionInfo.userVersName != null)
{
StringBuilder bil = new StringBuilder();
foreach (string name in m_VersionInfo.userVersName)
{
bil.Append(name + "\n");
}
this.VersionLabel.Text = bil.ToString();
}
else
{
this.VersionLabel.Text = "Small Version";
}
}
示例3: WebClient_OnDownloadStringCompleted
private void WebClient_OnDownloadStringCompleted(object sender, DownloadStringCompletedEventArgs downloadStringCompletedEventArgs)
{
// Pega a referência do resultado
var result = downloadStringCompletedEventArgs.Result;
// Deserializa o XML recebido do site
latestVersion = SerializationHelper.ReadFromXml<VersionInfo>(result);
// Libera o WebClient da memória
((WebClient)sender).Dispose();
// Atualiza as configurações, informando a data da última checagem de atualização
Properties.Settings.Default.LastTimeCheckedUpdate = DateTime.Now;
Properties.Settings.Default.Save();
// Atualiza as configurações
Properties.Settings.Default.UpdateAvailable = UpdateAvailable;
Properties.Settings.Default.Save();
// Atualização disponível
if (!UpdateAvailable) return;
// Define o local para salvar o arquivo
downloadedFileName = downloadedFileDir + System.IO.Path.GetFileName(latestVersion.downloadURL);
// Baixa atualização
DownloadUpdate(latestVersion.downloadURL, downloadedFileName);
}
示例4: CreateEntry
public ChangeLogEntry CreateEntry(VersionInfo version,string text)
{
ChangeLogEntry entry = new ChangeLogEntry();
entry.Version = version;
entry.Text = text;
return entry;
}
示例5: removeVersion
public void removeVersion(VersionInfo version)
{
DataRow dat;
VersionInfoFromDataRow.TryGetValue(version, out dat);
if (dat != null)
{
this.Rows.Remove(dat);
VersionInfoFromDataRow.Remove(version);
}
}
示例6: ExecuteVersioningStrategy
public override void ExecuteVersioningStrategy(string currentVersion, string desiredVersion)
{
Logger.InfoFormat("No version history information found, creating history at version '{0}'..",
desiredVersion);
var version = new VersionInfo {Version = desiredVersion};
CreateNewVersion(version);
Logger.InfoFormat("Version '{0}' recorded.", desiredVersion);
FromVersion = "0";
ToVersion = version.Version;
}
开发者ID:limitzero,项目名称:db-advance,代码行数:11,代码来源:ExternalVersionNumberSuppliedWithoutVersionInfoHistorySpecification.cs
示例7: GetVersionInfo
public VersionFile GetVersionInfo(VersionInfo build)
{
if (!Configured())
return null;
if (!File.Exists(_repoDir + @"\xmls\Version_" + _platform + "_" + build.Build + ".xml"))
return null;
var fileinfo = new VersionFile();
fileinfo.Load(_repoDir + @"\xmls\Version_" + _platform + "_" + build.Build + ".xml");
return fileinfo;
}
示例8: addVersion
public void addVersion(VersionInfo vers)
{
List<VersionBox> newC = mana.returnChangeAdd(vers);
this.SuspendLayout();
VersionLeaf vler;
//Todo if there is a row add then everything must be redrawn
//make that more clear bu setting a variable
//then check that and redraw
//if (mana.removeBox == null && newC == null)
//{
// addAllFromMana();
//}
//else
//{
// foreach (BoxLoc bo in mana.removeBox)
// {
// VersionBoxFromString.TryGetValue("row" + bo.row + "col" + bo.col, out vler);
// if (vler != null)
// {
// vler.Visible = false;
// }
// }
// this.tableLayoutPanel1.ColumnCount = mana.Col + 1;
// this.tableLayoutPanel1.RowCount = mana.Row + 1;
// foreach (VersionBox vb in newC)
// {
// VersionBoxFromString.TryGetValue("row" + vb.Row + "col" + vb.Col, out vler);
// if (vler != null)
// {
// vler.setVersionInfo(vb.m_version);
// }
// else
// {
// this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
// VersionLeaf leaf = new VersionLeaf(vb.m_version);
// leaf.setText("Col: " + vb.Col + " Row: " + vb.Row + " ColSpan: " + vb.ColSpan);
// leaf.Anchor = System.Windows.Forms.AnchorStyles.None;
// leaf.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
// leaf.Location = new System.Drawing.Point(4, 4);
// leaf.Size = new System.Drawing.Size(150, 150);
// this.tableLayoutPanel1.Controls.Add(leaf, vb.Col, vb.Row);
// VersionBoxFromString["row" + vb.Row + "col" + vb.Col] = leaf;
// if (vb.ColSpan > 0)
// {
// this.tableLayoutPanel1.SetColumnSpan(leaf, vb.ColSpan);
// }
// this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
// }
// }
//}
//this.ResumeLayout(false);
//this.PerformLayout();
}
示例9: setVersionInfo
public void setVersionInfo(VersionInfo vers)
{
this.m_VersionInfo = vers;
this.VersionLabelBig.Text = vers.versionName;
StringBuilder bil = new StringBuilder();
foreach (string name in m_VersionInfo.userVersName)
{
bil.Append(name + "\n");
}
this.VersionLabel.Text = bil.ToString();
this.Visible = true;
}
示例10: CreateControlFromInfo
void CreateControlFromInfo ()
{
var lw = new LogWidget (info);
widget = lw;
info.Updated += OnInfoUpdated;
lw.History = this.info.History;
vinfo = this.info.Item.VersionInfo;
if (WorkbenchWindow != null)
widget.SetToolbar (WorkbenchWindow.GetToolbar (this));
}
示例11: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 0:
Version = new VersionInfo(reader);
break;
}
}
示例12: UpdateVersionDescription
public bool UpdateVersionDescription(VersionInfo build, string description)
{
if (!Configured())
return false;
if (!File.Exists(_repoDir + @"\xmls\Version_" + _platform + "_" + build.Build + ".xml"))
return false;
var fileinfo = new VersionFile();
fileinfo.Load(_repoDir + @"\xmls\Version_" + _platform + "_" + build.Build + ".xml");
fileinfo.Description = description;
fileinfo.Save(_repoDir + @"\xmls\Version_" + _platform + "_" + build.Build + ".xml");
return true;
}
示例13: CalendarPanel
public CalendarPanel(VersionInfo vers)
{
InitializeComponent();
this.DateLabel.Text = vers.date.ToLongDateString();
this.TimeLabel.Text = vers.date.ToLongTimeString();
this.VersionsListBox.Items.Add(vers.versionName);
if (vers.userVersName != null)
{
foreach (string v in vers.userVersName)
{
this.VersionsListBox.Items.Add(v);
}
}
}
示例14: Get
public static VersionInfo Get()
{
if (versionInfo == null)
{
lock (lockObj)
{
if (versionInfo == null)
{
versionInfo = get();
}
}
}
return versionInfo;
}
示例15: CreateControlFromInfo
void CreateControlFromInfo ()
{
this.vc = info.Item.Repository;
this.filepath = info.Item.Path;
var lw = new LogWidget (info);
widget = lw;
info.Updated += delegate {
lw.History = this.info.History;
vinfo = this.info.VersionInfo;
};
lw.History = this.info.History;
vinfo = this.info.VersionInfo;
}