本文整理汇总了C#中VersionInfo类的典型用法代码示例。如果您正苦于以下问题:C# VersionInfo类的具体用法?C# VersionInfo怎么用?C# VersionInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VersionInfo类属于命名空间,在下文中一共展示了VersionInfo类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: VersionMini
public VersionMini(VersionInfo vers, FTObjects ftobjects)
{
InitializeComponent();
m_VersionInfo = vers;
m_FTObjects = ftobjects;
SetVersion();
}
开发者ID:LucindaInc,项目名称:FolderTrack,代码行数:7,代码来源:VersionMini.cs
示例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";
}
}
开发者ID:LucindaInc,项目名称:FolderTrack,代码行数:27,代码来源:VersionLeaf.cs
示例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);
}
开发者ID:MathiasBerwig,项目名称:Locutor-da-Hora,代码行数:25,代码来源:UpdateHelper.cs
示例4: CreateEntry
public ChangeLogEntry CreateEntry(VersionInfo version,string text)
{
ChangeLogEntry entry = new ChangeLogEntry();
entry.Version = version;
entry.Text = text;
return entry;
}
开发者ID:derkork,项目名称:PlayMaker--Ecosystem--Browser,代码行数:8,代码来源:ChangeLog.cs
示例5: removeVersion
public void removeVersion(VersionInfo version)
{
DataRow dat;
VersionInfoFromDataRow.TryGetValue(version, out dat);
if (dat != null)
{
this.Rows.Remove(dat);
VersionInfoFromDataRow.Remove(version);
}
}
开发者ID:LucindaInc,项目名称:FolderTrack,代码行数:10,代码来源:SearchDataTable.cs
示例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;
}
开发者ID:Ghawken,项目名称:FrontView,代码行数:11,代码来源:LocalRepository.cs
示例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();
}
开发者ID:LucindaInc,项目名称:FolderTrack,代码行数:54,代码来源:VersionRelationShipTress.cs
示例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;
}
开发者ID:LucindaInc,项目名称:FolderTrack,代码行数:12,代码来源:VersionLeaf.cs
示例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));
}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:12,代码来源:LogView.cs
示例11: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.GetVersion();
switch (version)
{
case 0:
Version = new VersionInfo(reader);
break;
}
}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:13,代码来源:ClientVersionConquest.cs
示例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;
}
开发者ID:Ghawken,项目名称:FrontView,代码行数:14,代码来源:LocalRepository.cs
示例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);
}
}
}
开发者ID:LucindaInc,项目名称:FolderTrack,代码行数:14,代码来源:CalendarPanel.cs
示例14: Get
public static VersionInfo Get()
{
if (versionInfo == null)
{
lock (lockObj)
{
if (versionInfo == null)
{
versionInfo = get();
}
}
}
return versionInfo;
}
开发者ID:viniston,项目名称:AV,代码行数:15,代码来源:VersionInformation.cs
示例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;
}
开发者ID:nocache,项目名称:monodevelop,代码行数:15,代码来源:LogView.cs
示例16: DiffData
public DiffData (Repository vc, FilePath root, VersionInfo info, bool remote)
{
VersionInfo = info;
Diff = new Lazy<DiffInfo> (() => {
try {
DiffInfo result = null;
if (!remote)
result = vc.GenerateDiff (root, info);
return result ?? vc.PathDiff (root, new [] { info.LocalPath }, remote).FirstOrDefault ();
} catch (Exception ex) {
Exception = ex;
return null;
}
});
}
开发者ID:kdubau,项目名称:monodevelop,代码行数:15,代码来源:StatusView.cs
示例17: Get
public object Get(VersionInfo request)
{
var availableMigrations = Assembly.GetTypes()
.Where(t => t.IsDefined(typeof(MigrationAttribute), true))
.Select(t =>
{
var m = (MigrationAttribute)t.GetCustomAttributes(typeof(MigrationAttribute), true).First();
return new VersionInfo
{
Description = m.Description ?? t.Name,
Version = m.Version,
IsAvailable = true,
};
})
.ToList();
using(var con = Database.OpenDbConnection())
{
List<VersionInfo> appliedMigrations;
if (con.TableExists("VersionInfo"))
{
appliedMigrations = con.Select<VersionInfo>();
}
else
{
appliedMigrations = new List<VersionInfo>();
}
return new VersionInfoResponse
{
Migrations = appliedMigrations
.Concat(availableMigrations)
.ToLookup(v => v.Version)
.Select(g => g.Aggregate((v1, v2) => new VersionInfo
{
Version = v1.Version,
Description = v1.Description ?? v2.Description,
AppliedOn = v1.AppliedOn ?? v2.AppliedOn,
IsAvailable = v1.IsAvailable || v2.IsAvailable,
}))
.OrderByDescending(v => v.Version)
.ToList(),
Info = appliedMigrations.Except(availableMigrations).Any() ? "Warning: Database has migrations applied that are not available in the current migration assembly. Rollback may not be possible." : null,
Database = con.Database,
};
}
}
开发者ID:shaneedwards,项目名称:FluentMigrator.ServiceStack,代码行数:48,代码来源:MigrationService.cs
示例18: AddUserVersionButton_Click
public static void AddUserVersionButton_Click( VersionInfo VersionInfo, EventArgs e, Panel Caller)
{
if (VersionInfo != null)
{
Util.UserDebug("Add User Version Button Clicked " + VersionInfo.versionName);
UserVersionForm uservers = new UserVersionForm(VersionInfo, m_FTObjects.AllUserVersions);
DialogResult res = uservers.ShowDialog(Caller);
if (res == DialogResult.OK)
{
UserVersVer ver = new UserVersVer();
ver.uservers = uservers;
ver.versionInfo = VersionInfo;
new Thread(new ParameterizedThreadStart(HandleAddUser)).Start(ver);
}
}
}
开发者ID:LucindaInc,项目名称:FolderTrack,代码行数:16,代码来源:GuiFunctions.cs
示例19: SetVersionInfo
public void SetVersionInfo(VersionInfo vi)
{
this.versionInfo = vi;
string version = GameInfo.instance.version;
if (vi.isMandatory == 1)
{
this.descTM.text = string.Format(Localization.Localize("NewVersionNoticeContent2"), version, vi.newVersionId);
this.mandatoryObj.SetActive(true);
this.optionObj.SetActive(false);
}
else
{
this.descTM.text = string.Format(Localization.Localize("NewVersionNoticeContent1"), version, vi.newVersionId);
this.optionObj.SetActive(true);
this.mandatoryObj.SetActive(false);
}
this.descTM.Commit();
}
开发者ID:Lessica,项目名称:Something-of-SHIPWAR-GAMES,代码行数:18,代码来源:NewVersionNoticeUI.cs
示例20: TryParse
public static bool TryParse(string value, out VersionInfo info)
{
if (value.Length > 1 && value.EndsWith("b"))
{
value = value.Substring(0, value.Length - 1);
}
if (string.IsNullOrEmpty(value))
{
info = default(VersionInfo);
return false;
}
string[] tokens = value.Split('.');
if (tokens.Length != 3)
{
info = default(VersionInfo);
return false;
}
int major;
if (!int.TryParse(tokens[0], out major))
{
info = default(VersionInfo);
return false;
}
int minor;
if (!int.TryParse(tokens[1], out minor))
{
info = default(VersionInfo);
return false;
}
int maintenance;
if (!int.TryParse(tokens[2], out maintenance))
{
info = default(VersionInfo);
return false;
}
info = new VersionInfo(major, minor, maintenance);
return true;
}
开发者ID:ashishsfb,项目名称:Save-The-Kitty,代码行数:44,代码来源:Updater.cs
注:本文中的VersionInfo类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论