Esempio n. 1
0
        protected void ProcessMoving(object sender, PostProgressDoPostedDataEventArgs e)
        {
            try
            {
                string ser = (string)e.Steps[0];

                DeserialObject obj = JSONSerializerExecute.Deserialize <DeserialObject>(ser);

                var executer = new BatchGroupTransferExecutor(obj.SrcKeys, obj.TargetKeys);

                executer.Execute();
            }
            catch (Exception ex)
            {
                ProcessProgress.Current.Output.WriteLine(ex.ToString());
            }

            e.Result.ProcessLog  = ProcessProgress.Current.GetDefaultOutput();
            e.Result.CloseWindow = false;
        }
Esempio n. 2
0
		protected void ProcessMoving(object sender, PostProgressDoPostedDataEventArgs e)
		{
			try
			{
				string ser = (string)e.Steps[0];

				DeserialObject obj = JSONSerializerExecute.Deserialize<DeserialObject>(ser);

				var executer = new BatchGroupTransferExecutor(obj.SrcKeys, obj.TargetKeys);

				executer.Execute();
			}
			catch (Exception ex)
			{
				ProcessProgress.Current.Output.WriteLine(ex.ToString());
			}

			e.Result.ProcessLog = ProcessProgress.Current.GetDefaultOutput();
			e.Result.CloseWindow = false;
		}