本文整理汇总了C#中ResizeSettings.ToStringEncoded方法的典型用法代码示例。如果您正苦于以下问题:C# ResizeSettings.ToStringEncoded方法的具体用法?C# ResizeSettings.ToStringEncoded怎么用?C# ResizeSettings.ToStringEncoded使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ResizeSettings
的用法示例。
在下文中一共展示了ResizeSettings.ToStringEncoded方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: bwResizeBatch_DoWork
void bwResizeBatch_DoWork(object sender, DoWorkEventArgs e)
{
if (DoWorkEvent != null)
DoWorkEvent(this, new DoWorkEventArgs(e.Argument));
count = 0;
try
{
Dictionary<string, object> UserInputs = e.Argument as Dictionary<string, object>;
if (UserInputs != null)
{
ResizeSettings rs = new ResizeSettings((string)UserInputs["querystring"]);
batchItems = (List<BatchInfo>)UserInputs["batchItems"];
total = batchItems.Count;
Guid job = Guid.NewGuid();
var s = new BatchResizeSettings(Properties.Settings.Default.saveZipPath, job, new List<BatchResizeItem>());
foreach (var item in batchItems)
s.files.Add(new BatchResizeItem(item.FullPath, null, rs.ToStringEncoded()));
s.ItemEvent += s_ItemEvent;
s.JobEvent += s_JobEvent;
new BatchResizeWorker(s).Work();
}
}
catch (Exception ex)
{
// handle the exception.
}
}