public ProfileSettingsWindow(PadProfile profile)
 {
     this.profile = profile;
     InitializeComponent();
     InitSettings();
     UpdateEnabled();
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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();
        }
Ejemplo n.º 5
0
 public PadProfile(PadProfile old)
 {
     CopyFrom(old);
 }
Ejemplo n.º 6
0
 public LayoutWindow(PadProfile profile)
 {
     this.profile = profile;
     InitializeComponent();
 }