public static OptionCertification ResetInstance() { PathInfo info = PathInfo.CreateInstance(); singletonInstance = AbstractConfig.Load(typeof(OptionCertification), ExtraTypes, info.OptioncertificationSetup) as OptionCertification; if (singletonInstance == null) { singletonInstance = new OptionCertification(); singletonInstance.Initialize(); } return singletonInstance; }
public static void AllReset() { pathInfo = PathInfo.ResetInstance(); systemEnvironment = SystemEnvironment.ResetInstance(); user = User.ResetInstance(); userEnvironment = UserEnvironment.ResetInstance(); optionCertification = OptionCertification.ResetInstance(); printerSettings = PrintSetups.ResetInstance(); messageClassify = MessageClassify.ResetInstance(); helpSettings = HelpSettings.ResetInstance(); fileSave = FileSave.ResetInstance(); receiveNotice = ReceiveNotice.ResetInstance(); userKey = UserKey.ResetInstance(); termMessage = TermMessage.ResetInstance(); gStamp = GStampSettings.ResetInstance(); }
protected virtual void TabPage_Load() { ConfigFiles.AllLoad(); pathInfo = ConfigFiles.pathInfo; user = ConfigFiles.user; userKey = ConfigFiles.userKey; this.saveUserKey = ConfigFiles.userKey; printSetups = ConfigFiles.printerSettings; userEnvironment = ConfigFiles.userEnvironment; messageClassify = ConfigFiles.messageClassify; fileSave = ConfigFiles.fileSave; receiveNotice = ConfigFiles.receiveNotice; helpSettings = ConfigFiles.helpSettings; optionCertification = ConfigFiles.optionCertification; gStamp = ConfigFiles.gStamp; this.LoadTerm(); this.LoadServer(); this.LoadPrinter(); this.LoadAutoPrint(); this.LoadMsgCls(); this.LoadFileSaveK(); this.LoadFileSaveC(); this.LoadReceiveInform(); this.LoadUserKey(); this.LoadLog(); this.LoadHelp(); this.LoadPassword(); }
private void DlgRes_Yes() { messageClassify.Save(); user.Application.SettingsDiv = this.DivType; user.Save(); pathInfo = PathInfo.ResetInstance(); messageClassify = MessageClassify.ResetInstance(); this.LoadMsgCls(); optionCertification = OptionCertification.ResetInstance(); this.LoadPassword(); this.btnRootAcpt_Click(null, new EventArgs()); }