当前位置: 首页>>代码示例>>C#>>正文


C# Duplicati.SetGuiOptions方法代码示例

本文整理汇总了C#中Duplicati.SetGuiOptions方法的典型用法代码示例。如果您正苦于以下问题:C# Duplicati.SetGuiOptions方法的具体用法?C# Duplicati.SetGuiOptions怎么用?C# Duplicati.SetGuiOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Duplicati的用法示例。


在下文中一共展示了Duplicati.SetGuiOptions方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetRow

 /// <summary>
 /// Populate a JobsRow with results from the controls
 /// </summary>
 /// <param name="aRow">Row to fill</param>
 private void GetRow(Duplicati.Scheduler.Data.SchedulerDataSet.JobsRow aRow)
 {
     // Now, if User has been in the Destination tab, we may have a new
     // set of destination and options, fetch them.
     if (GuiControl != null && VisitedDestination)
     {
         Dictionary<string, string> Opts = new Dictionary<string, string>();
         Dictionary<string, string> GuiOpts = new Dictionary<string, string>();
         string Dest = string.Empty;
         if (GetConfiguration(out Opts, out GuiOpts, out Dest))
         {
             aRow.SetOptions(Opts);
             aRow.SetGuiOptions(GuiOpts);
             aRow.Destination = Dest;
         }
     }
     // Get stuff from the controls
     aRow.Source = string.Join(System.IO.Path.PathSeparator.ToString(), this.folderSelectControl1.SelectedFolders);
     aRow.FullOnly = this.FullAlwaysRadioButton.Checked;
     aRow.FullAfterN = this.FullAfterNRadioButton.Checked ? (int)this.FullAfterNNumericUpDown.Value : 0;
     aRow.FullRepeatDays = this.FullDaysRadioButton.Checked ? (int)this.FullDaysNumericUpDown.Value : 0;
     aRow.FilterLines = this.FilterList;
     aRow.MaxFulls = this.MaxFullsCheckBox.Checked ? (int)this.MaxFullsNumericUpDown.Value : 0;
     aRow.MaxAgeDays = this.MaxAgeCheckBox.Checked ? (int)this.MaxAgeNnumericUpDown.Value : 0;
     aRow.Enabled = this.TaskEditor.GetTrigger().Enabled;
     aRow.TriggerXML = TaskEditControl.TriggerToXml(this.TaskEditor.GetTrigger());
     if (itsAdvanced.DialogResult == DialogResult.OK)
     {
         aRow.AutoCleanup = itsAdvanced.AutoDelete;
         aRow.MapDrives = itsAdvanced.Map;
     }
     aRow.Checksum = Settings.Values.Checksum;
     aRow.CheckMod = Settings.Values.CheckMod;
     aRow.SetCheckSrc(this.PasswordMethodComboBox.SelectedIndex);
     // Never edited (?)
     if (aRow.IsLastModNull()) aRow.LastMod = DateTime.Now;
 }
开发者ID:pacificIT,项目名称:Duplicati,代码行数:41,代码来源:JobDialog.cs


注:本文中的Duplicati.SetGuiOptions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。