예제 #1
0
 public FileActionForm(ExternalProgram fileAction)
 {
     FileAction = fileAction;
     InitializeComponent();
     txtName.Text = fileAction.Name ?? "";
     txtPath.Text = fileAction.Path ?? "";
     txtArguments.Text = fileAction.Args ?? "%filepath%";
 }
예제 #2
0
파일: ActionsForm.cs 프로젝트: barsv/ShareX
 public ActionsForm(ExternalProgram fileAction)
 {
     InitializeComponent();
     Icon = ShareXResources.Icon;
     FileAction = fileAction;
     txtName.Text = fileAction.Name ?? "";
     txtPath.Text = fileAction.Path ?? "";
     txtArguments.Text = fileAction.Args ?? "";
     CodeMenu.Create<ActionsCodeMenuEntry>(txtArguments);
     txtOutputExtension.Text = fileAction.OutputExtension ?? "";
     txtExtensions.Text = fileAction.Extensions ?? "";
 }
예제 #3
0
 private void AddFileAction(ExternalProgram fileAction)
 {
     ListViewItem lvi = new ListViewItem(fileAction.Name ?? "");
     lvi.Tag = fileAction;
     lvi.Checked = fileAction.IsActive;
     lvi.SubItems.Add(fileAction.Path ?? "");
     lvi.SubItems.Add(fileAction.Args ?? "");
     lvActions.Items.Add(lvi);
 }