public FileActionForm(ExternalProgram fileAction) { FileAction = fileAction; InitializeComponent(); txtName.Text = fileAction.Name ?? ""; txtPath.Text = fileAction.Path ?? ""; txtArguments.Text = fileAction.Args ?? "%filepath%"; }
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 ?? ""; }
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); }