/// <summary> /// Show registering dialog to user /// </summary> /// <returns>Type of running</returns> public RunTypes ShowDialog() { // check if registered before if (CheckRegister() == true) { return(RunTypes.Full); } frmDialog PassDialog = new frmDialog(_BaseString, _Password, DaysToEnd(), _Runed, _Text); MakeHideFile(); DialogResult DR = PassDialog.ShowDialog(); if (DR == DialogResult.OK) { MakeRegFile(); return(RunTypes.Full); } else if (DR == DialogResult.Retry) { return(RunTypes.Trial); } else { return(RunTypes.Expired); } }
/// <summary> /// Show registering dialog to user /// </summary> /// <returns>Type of running</returns> public Tuple <RunTypes, string> ShowDialog() { // check if registered before if (CheckRegister() == true) { return(new Tuple <RunTypes, string>(RunTypes.Full, string.Empty)); } frmDialog PassDialog = new frmDialog(_BaseString, _Password, DaysToEnd(), _Runed, _Text); MakeHideFile(); DialogResult DR = PassDialog.ShowDialog(); if (DR == System.Windows.Forms.DialogResult.OK) { MakeRegFile(); //Store the timestamp when the application was last opened ModifyTimeStampFile(); return(new Tuple <RunTypes, string>(RunTypes.Full, PassDialog.RegisteredClientName)); } else if (DR == DialogResult.Retry) { //Store the timestamp when the application was last opened ModifyTimeStampFile(); return(new Tuple <RunTypes, string>(RunTypes.Trial, PassDialog.RegisteredClientName)); } else { //Store the timestamp when the application was last opened ModifyTimeStampFile(); return(new Tuple <RunTypes, string>(RunTypes.Expired, PassDialog.RegisteredClientName)); } }
/// <summary> /// Show registering dialog to user /// </summary> /// <returns>Type of running</returns> public RunTypes ShowDialog() { // check if registered before if (CheckRegister() == true) { return(RunTypes.Full); } frmDialog PassDialog = new frmDialog(_BaseString, _Password, DaysToEnd(), _Text); //MakeHideFile(); string[] HideInfo; HideInfo = FileReadWrite.ReadFile(_HideFilePath).Split(';'); if (Convert.ToInt64(HideInfo[3]) < DateTime.Now.Ticks) { UpdateHideFile(); } DialogResult DR = PassDialog.ShowDialog(); if (DR == System.Windows.Forms.DialogResult.OK) { MakeRegFile(); return(RunTypes.Full); } else if (DR == DialogResult.Retry) { return(RunTypes.Trial); } else { return(RunTypes.Expired); } }
/// <summary> /// Show registering dialog to user /// </summary> /// <returns>Type of running</returns> public RunTypes ShowDialog() { // check if registered before if (_IsSubscrip == true) { _Runed = 50; if (DaysToEnd() > 0 && CheckRegister() == true) { return(RunTypes.Full); } else if (CheckRegister() == true) { _Identifier = ""; FileReadWrite.WriteFile(_RegFilePath, ""); MessageBox.Show("Your subscription is expired, Please enter new Subcription ID ", "Password", MessageBoxButtons.OK, MessageBoxIcon.Stop); } } else { if (CheckRegister() == true) { return(RunTypes.Full); } } frmDialog PassDialog = new frmDialog(_BaseString, _Password, DaysToEnd(), _Runed, _Text, _UID, _IsSubscrip); MakeHideFile(); DialogResult DR = PassDialog.ShowDialog(); if (DR == System.Windows.Forms.DialogResult.OK) { MakeRegFile(); return(RunTypes.Full); } else if (DR == DialogResult.Retry) { return(RunTypes.Trial); } else { return(RunTypes.Expired); } }
/// <summary> /// Show registering dialog to user /// </summary> /// <returns>Type of running</returns> public RunTypes ShowDialog() { // check if registered before if (CheckRegister() == true) return RunTypes.Full; frmDialog PassDialog = new frmDialog(_BaseString, _Password, DaysToEnd(), _Runed, _Text); MakeHideFile(); DialogResult DR = PassDialog.ShowDialog(); if (DR == System.Windows.Forms.DialogResult.OK) { MakeRegFile(); return RunTypes.Full; } else if (DR == DialogResult.Retry) return RunTypes.Trial; else return RunTypes.Expired; }
/// <summary> /// Show registering dialog to user /// </summary> /// <returns>Type of running</returns> public Tuple<RunTypes, string> ShowDialog() { // check if registered before if (CheckRegister() == true) return new Tuple<RunTypes,string>(RunTypes.Full, string.Empty); frmDialog PassDialog = new frmDialog(_BaseString, _Password, DaysToEnd(), _Runed, _Text); MakeHideFile(); DialogResult DR = PassDialog.ShowDialog(); if (DR == System.Windows.Forms.DialogResult.OK) { MakeRegFile(); //Store the timestamp when the application was last opened ModifyTimeStampFile(); return new Tuple<RunTypes,string>(RunTypes.Full, PassDialog.RegisteredClientName); } else if (DR == DialogResult.Retry) { //Store the timestamp when the application was last opened ModifyTimeStampFile(); return new Tuple<RunTypes,string>(RunTypes.Trial,PassDialog.RegisteredClientName); } else { //Store the timestamp when the application was last opened ModifyTimeStampFile(); return new Tuple<RunTypes,string>(RunTypes.Expired, PassDialog.RegisteredClientName); } }