Beispiel #1
0
 public Dev2TaskSettings(TaskSettings nativeInstance)
 {
     nativeInstance.Priority = ProcessPriorityClass.Normal;
     _nativeInstance         = nativeInstance;
 }
Beispiel #2
0
    private bool SaveSettings()
    {
        EditRobotsTxt.SaveRobots();
        BankSettings.SaveData();

        bool valid = true;

        if (!NewsSettings.SaveData())
        {
            MsgErr(NewsSettings.ErrMessage);
            valid = false;
        }
        if (!MailSettings.SaveData())
        {
            MsgErr(MailSettings.ErrMessage);
            valid = false;
        }
        if (!GeneralSettings.SaveData())
        {
            MsgErr(GeneralSettings.ErrMessage);
            valid = false;
        }
        if (!SEOSettings.SaveData())
        {
            MsgErr(SEOSettings.ErrMessage);
            valid = false;
        }
        if (!OrderConfirmationSettings.SaveData())
        {
            MsgErr(OrderConfirmationSettings.ErrMessage);
            valid = false;
        }
        if (!NotifyEmailsSettings.SaveData())
        {
            MsgErr(NotifyEmailsSettings.ErrMessage);
            valid = false;
        }
        if (!DesignSettings.SaveData())
        {
            MsgErr(DesignSettings.ErrMessage);
            valid = false;
        }
        if (!OAuthSettings.SaveData())
        {
            MsgErr(OAuthSettings.ErrMessage);
            valid = false;
        }
        if (!CatalogSettings.SaveData())
        {
            MsgErr(CatalogSettings.ErrMessage);
            valid = false;
        }

        if (!TaskSettings.SaveData())
        {
            MsgErr(TaskSettings.ErrMessage);
            valid = false;
        }

        if (!ProfitSettings.SaveData())
        {
            MsgErr(ProfitSettings.ErrMessage);
            valid = false;
        }
        return(valid);
    }
Beispiel #3
0
 public Dev2TaskSettings(TaskSettings nativeInstance)
 {
     _nativeInstance = nativeInstance;
 }
Beispiel #4
0
		bool performing = false; // is the task being performed?

		public PerformerTask () {
			settings = DataManager.GetTaskSettings (this.GetType ());
			if (settings.Repeat && Duration == 0)
				throw new System.Exception (this.GetType () + " is marked as repeating with a duration of 0. This will cause the game to hang.");
		}
Beispiel #5
0
 public ITaskSettings CreateTaskSettings(TaskSettings taskSettings)
 {
     return(new Dev2TaskSettings(taskSettings));
 }
Beispiel #6
0
 private void Save(TaskSettings taskSettings)
 {
     _session.Transact(session => session.Update(taskSettings));
 }