public ProfileSettingsWindow(PadProfile profile) { this.profile = profile; InitializeComponent(); InitSettings(); UpdateEnabled(); }
public void CopyFrom(PadProfile old) { _layouts = new Dictionary <Guid, PadLayout>(old.layouts); saveLayouts = new List <LayoutPair>(old.saveLayouts); layoutOrder = new List <Guid>(old.LayoutOrder); saveLayoutsGet = old.saveLayoutsGet; name = old.Name; defaultLayout = old.defaultLayout; }
public PadLayout Duplicate(PadProfile profile = null) { PadLayout copy = new PadLayout(); if (profile == null) { copy.Name = copy.Name + " Copy"; } else { } copy.ID = Guid.NewGuid(); return(copy); }
public KeyDialog(PadLayout layout, PadProfile profile, ButtonDescription button, ButtonPreviewFunction preview) { this.layout = layout; this.profile = profile; this.preview = preview; InitializeComponent(); SetupFontWeightBox(); SetupFontFamilyBox(); Button = button; SetupVKeys(); ActionTypeCombo.SelectedIndex = (int)Button.Action.ActionType; UpdateForActionType(); }
public PadProfile(PadProfile old) { CopyFrom(old); }
public LayoutWindow(PadProfile profile) { this.profile = profile; InitializeComponent(); }