Esempio n. 1
0
        public Main()
        {
            r    = new Random();
            skin = new OSSkin();
            InitializeComponent();
            toolStripLabel1.Text += LicenseGlobal.Seal.GetVariable("version");

            label2.Text += LicenseGlobal.Seal.Username;
            label5.Text += LicenseGlobal.Seal.UnlimitedTime ? "Unlimited" : LicenseGlobal.Seal.ExpirationDate.ToShortDateString();
            label7.Text += LicenseGlobal.Seal.LicenseType.ToString();
            timeleft     = LicenseGlobal.Seal.UnlimitedTime ? 0 : (int)LicenseGlobal.Seal.TimeRemaining.TotalSeconds;
            if (timeleft != 0)
            {
                timer1.Start();
            }
            else
            {
                label6.Text += "Unlimited";
            }

            for (int i = 0; i < LicenseGlobal.Seal.News.Length; i++)
            {
                richTextBox2.AppendText(LicenseGlobal.Seal.News[i].Name + " - " + LicenseGlobal.Seal.News[i].Time.ToShortDateString() + "\n" + LicenseGlobal.Seal.GetPostMessage(LicenseGlobal.Seal.News[i].ID) + "\n\n");
            }

            Text += LicenseGlobal.Seal.Username;
            CheckForIllegalCrossThreadCalls = false;
            Setup();
            InitializeMessage();
            InitializeSkins();
            LoadSettings();
            vScrollBar1_Scroll(null, null);
            comboBox1.SelectedIndex = 0;
            comboBox3.SelectedIndex = 0;
        }
Esempio n. 2
0
 public Login()
 {
     InitializeComponent();
     //Text += Program.Version;
     CheckForIllegalCrossThreadCalls = false;
     skin = new OSSkin();
     LoadSettings();
 }