B2S.Server Sample Plugin
Sample plugin implementation for the B2S.Server
Go to:
Overview 
 All Classes Namespaces Files Functions Properties Pages
Frontend.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Linq;
7 using System.Text;
8 using System.Windows.Forms;
9 
10 namespace B2SServerSamplePluginCSharp
11 {
15  public partial class Frontend : Form
16  {
20  public Frontend()
21  {
22  InitializeComponent();
23  }
24 
30  private void Frontend_Load(object sender, EventArgs e)
31  {
32  //Get the version of the assembly
33  Version V = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
34  //Calculate the BuildDate based in the build and revsion number of the project.
35  DateTime BuildDate = new DateTime(2000, 1, 1).AddDays(V.Build).AddSeconds(V.Revision * 2);
36  //Format and set the version string.
37  VersionLabel.Text=string.Format("Version {0} as of {1}", V.ToString(), BuildDate.ToString("yyyy.MM.dd hh:mm"));
38  }
39 
46  private void CloseButton_Click(object sender, EventArgs e)
47  {
48  this.Close();
49  }
50 
51  private void DocuLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
52  {
53  System.Diagnostics.Process.Start("http://directoutput.github.io/B2SServerSamplePlugin/");
54  }
55 
56  private void VersionLabel_Click(object sender, EventArgs e)
57  {
58 
59  }
60 
61 
62 
63 
64  }
65 }