コード例 #1
0
 public ProfileSettingsWindow(PadProfile profile)
 {
     this.profile = profile;
     InitializeComponent();
     InitSettings();
     UpdateEnabled();
 }
コード例 #2
0
ファイル: PadProfile.cs プロジェクト: KyleADOlson/TouchPad
 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;
 }
コード例 #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);
        }
コード例 #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();
        }
コード例 #5
0
ファイル: PadProfile.cs プロジェクト: KyleADOlson/TouchPad
 public PadProfile(PadProfile old)
 {
     CopyFrom(old);
 }
コード例 #6
0
 public LayoutWindow(PadProfile profile)
 {
     this.profile = profile;
     InitializeComponent();
 }