Ejemplo n.º 1
0
 public static UserKey DefaultInstance()
 {
     singletonInstance = new UserKey();
     singletonInstance.Initialize();
     singletonInstance.SetDefaultUserKey(false);
     return singletonInstance;
 }
Ejemplo n.º 2
0
 public static UserKey ClearInstance()
 {
     singletonInstance = new UserKey();
     singletonInstance.Initialize();
     singletonInstance.SetDefaultUserKey(true);
     return singletonInstance;
 }
Ejemplo n.º 3
0
 private static void MergeInstance()
 {
     singletonInstance = new UserKey();
     singletonInstance.Initialize();
     singletonInstance.SetDefaultUserKey(false);
     PathInfo info = PathInfo.CreateInstance();
     UserKey key = AbstractConfig.Load(typeof(UserKey), ExtraTypes, info.UserKeySetup) as UserKey;
     if (key != null)
     {
         singletonInstance.UserKeyMerge(key.JobKeyList);
     }
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 private void btnUkeyReset_Click(object sender, EventArgs e)
 {
     if (this.ShowModalMessage("C502", null, null) == DialogResult.Yes)
     {
         userKey = UserKey.ClearInstance();
         this.LoadUserKey();
     }
 }
Ejemplo n.º 6
0
 private void btnRootAcpt_Click(object sender, EventArgs e)
 {
     if (this.FormClosing_Check())
     {
         if (!this.TabPage_Save())
         {
             this.ShowModelessMessage("E573", null, null);
         }
         else
         {
             this.saveUserKey = userKey;
         }
     }
 }
Ejemplo n.º 7
0
 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();
 }