private void SoftwareActivation_Shown(object sender, EventArgs e) { string Activation_Key = ""; //***********If alrady active and Activate=true then only show local server connection********** if (OnlineActivationTools.IsValidLicenseDate(out Activation_Key)) { string[] key = Activation_Key.Split('-'); try { txtKey1.Text = key[0]; txtKey2.Text = key[1]; txtKey3.Text = key[2]; txtKey4.Text = key[3]; txtKey1.Enabled = false; txtKey2.Enabled = false; txtKey3.Enabled = false; txtKey4.Enabled = false; btnActivated.Enabled = false; linkLabel1.Enabled = false; } catch (Exception) { } Cursor = Cursors.WaitCursor; AppServerConfigWIndow FRMAppServer = new AppServerConfigWIndow(mKey); FRMAppServer.OnClose += FRMAppServer_OnClose; FRMAppServer.ShowDialog(); Cursor = Cursors.Default; } }
private void Orgfrm_OnClose(string arg1, string arg2, string arg3) { //*********************Org Details********************** mOrg_Name = arg1; mOrg_ContectNo = arg2; mOrg_Email = arg3; //******Static Method Store Variable data*************** OnlineOrgTools.gOrgName = mOrg_Name; OnlineOrgTools.gOrgContectNo = mOrg_ContectNo; OnlineOrgTools.gOrgEmail = mOrg_Email; //********************FIRS ONLINE ACTIVATION************* if (OnlineActivationTools.IsOnlineActivation(mKey, mOrg_Name, mOrg_ContectNo, mOrg_Email, "Remarks")) { linkLabel1.Enabled = false; //*******************set Registry*********************** RegistrySetSetting(); //*************SQL Server Connection********************* if (_IsSuccess) { Cursor = Cursors.WaitCursor; AppServerConfigWIndow FRMAppServer = new AppServerConfigWIndow(mKey); FRMAppServer.OnClose += FRMAppServer_OnClose; FRMAppServer.ShowDialog(); Cursor = Cursors.Default; } } else { DesktopNotify("Already Activated.", ToolTipIcon.Warning); } }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { //************Key text clear*************** txtKey1.Text = ""; txtKey2.Text = ""; txtKey3.Text = ""; txtKey4.Text = ""; //**********Its must be importent because its define //installlation process is Trail******************** mPremiumStatus = "False"; //****************Local Server Connection************* AppServerConfigWIndow FRMAppServerTrail = new AppServerConfigWIndow(mKey); FRMAppServerTrail.OnClose += FRMAppServerTrail_OnClose; FRMAppServerTrail.ShowDialog(); }