コード例 #1
0
ファイル: MediaAccess.cs プロジェクト: changer4/MPExtended
 public PluginConfigItem(PluginConfigItem old)
 {
     this.Value = old.Value;
     this.Name = old.Name;
     this.DisplayName = old.DisplayName;
     this.Type = old.Type;
 }
コード例 #2
0
        private void CreateFolderSelect(int rowHeight, PluginConfigItem item)
        {
            TextBox textbox = new TextBox();
            textbox.Margin = new Thickness(130, rowHeight, 110, 0);
            textbox.Text = item.Value;
            textbox.VerticalAlignment = VerticalAlignment.Top;
            textbox.Tag = item.Name;
            ConfigurationItems.Children.Add(textbox);
            mControls.Add(textbox);

            Button btnSelectFolder = new Button();
            btnSelectFolder.Click += new RoutedEventHandler(btnSelectFolder_Click);
            btnSelectFolder.Content = Strings.UI.Browse;
            btnSelectFolder.VerticalAlignment = VerticalAlignment.Top;
            btnSelectFolder.HorizontalAlignment = HorizontalAlignment.Right;
            btnSelectFolder.Margin = new Thickness(0, rowHeight, 10, 0);
            btnSelectFolder.Width = 75;
            btnSelectFolder.Tag = textbox;
            ConfigurationItems.Children.Add(btnSelectFolder);
        }
コード例 #3
0
 private void CreateTextBox(int rowHeight, PluginConfigItem item)
 {
     TextBox textbox = new TextBox();
     textbox.Margin = new Thickness(130, rowHeight, 10, 0);
     textbox.Text = item.Value;
     textbox.VerticalAlignment = VerticalAlignment.Top;
     textbox.Tag = item.Name;
     ConfigurationItems.Children.Add(textbox);
     mControls.Add(textbox);
 }
コード例 #4
0
 private void CreateBoolean(int rowHeight, PluginConfigItem item)
 {
     CheckBox checkBox = new CheckBox();
     checkBox.Margin = new Thickness(130, rowHeight + 5, 0, 0);
     checkBox.VerticalAlignment = VerticalAlignment.Top;
     checkBox.HorizontalAlignment = HorizontalAlignment.Left;
     checkBox.IsChecked = Boolean.Parse(item.Value);
     checkBox.Tag = item.Name;
     ConfigurationItems.Children.Add(checkBox);
     mControls.Add(checkBox);
 }