• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IFileDialogCustomize类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IFileDialogCustomize的典型用法代码示例。如果您正苦于以下问题:C# IFileDialogCustomize类的具体用法?C# IFileDialogCustomize怎么用?C# IFileDialogCustomize使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IFileDialogCustomize类属于命名空间,在下文中一共展示了IFileDialogCustomize类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Update

		internal void Update(IFileDialogCustomize dialog)
		{
			Debug.Assert(dialog != null, "CommonFileDialogComboBox.Attach: dialog parameter can not be null");

			// Remove the control items.
			// Don't do RemoveAllControlItems. It's not implemented natively.
			for (int index = 0; index < oldCount; ++index)
				dialog.RemoveControlItem (Id, index);

			// Re-add the combo box items
			for (int index = 0; index < Items.Count; ++index) {
				string text = Items [index].Text;

				dialog.AddControlItem (Id, index, text);
			}

			// If we didn't, go select.
			if (Enabled) {
				SelectedIndex = 0;
				ApplyPropertyChange ("SelectedIndex");
			}

			oldCount = Items.Count;

			// Sync additional properties
			SyncUnmanagedProperties ();
		}
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:27,代码来源:CustomCommonFileDialogComboBox.cs


示例2: Attach

		internal override void Attach (IFileDialogCustomize dialog)
		{
			base.Attach (dialog);

			// Keep track of old selection.
			SelectedIndexChanged += delegate {
				oldCount = Items.Count;
			};
		}
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:9,代码来源:CustomCommonFileDialogComboBox.cs


示例3: Attach

		/// <summary>
		/// Attach the Separator control to the dialog object
		/// </summary>
		/// <param name="dialog">Target dialog</param>
		internal override void Attach(IFileDialogCustomize dialog) {
			Debug.Assert(dialog != null, "CommonFileDialogSeparator.Attach: dialog parameter can not be null");

			// Add a separator
			dialog.AddSeparator(this.Id);

			// Sync unmanaged properties with managed properties
			SyncUnmanagedProperties();
		}
开发者ID:GodLesZ,项目名称:svn-dump,代码行数:13,代码来源:CommonFileDialogSeperator.cs


示例4: Attach

		/// <summary>
		/// Attach this control to the dialog object
		/// </summary>
		/// <param name="dialog">Target dialog</param>
		internal override void Attach(IFileDialogCustomize dialog) {
			Debug.Assert(dialog != null, "CommonFileDialog.Attach: dialog parameter can not be null");

			// Add a text control
			dialog.AddText(this.Id, this.Text);

			// Sync unmanaged properties with managed properties
			SyncUnmanagedProperties();
		}
开发者ID:GodLesZ,项目名称:svn-dump,代码行数:13,代码来源:CommonFileDialogLabel.cs


示例5: Attach

        /// <summary>
        /// Attach the PushButton control to the dialog object
        /// </summary>
        /// <param name="dialog">Target dialog</param>
        public override void Attach(IFileDialogCustomize dialog)
        {
            Debug.Assert(dialog != null, "CommonFileDialogButton.Attach: dialog parameter can not be null");

            // Add a push button control
            dialog.AddPushButton(this.Id, this.Text);

            // Make this control prominent if needed
            if (IsProminent) { dialog.MakeProminent(this.Id); }

            // Sync unmanaged properties with managed properties
            SyncUnmanagedProperties();
        }
开发者ID:uonun,项目名称:TaggableShell,代码行数:17,代码来源:CommonFileDialogButton.cs


示例6: Attach

        /// <summary>
        /// Attach the TextBox control to the dialog object
        /// </summary>
        /// <param name="dialog">Target dialog</param>
        internal override void Attach(IFileDialogCustomize dialog)
        {
            Debug.Assert(dialog != null, "CommonFileDialogTextBox.Attach: dialog parameter can not be null");

            // Add a text entry control
            dialog.AddEditBox(this.Id, this.Text);

            // Set to local instance in order to gate access to same.
            customizedDialog = dialog;

            // Sync unmanaged properties with managed properties
            SyncUnmanagedProperties();
        }
开发者ID:dbremner,项目名称:blurip,代码行数:17,代码来源:CommonFileDialogTextBox.cs


示例7: Attach

		/// <summary>
		/// Attach the CheckButton control to the dialog object.
		/// </summary>
		/// <param name="dialog">the target dialog</param>
		internal override void Attach(IFileDialogCustomize dialog) {
			Debug.Assert(dialog != null, "CommonFileDialogCheckBox.Attach: dialog parameter can not be null");

			// Add a check button control
			dialog.AddCheckButton(this.Id, this.Text, this.isChecked);

			// Make this control prominent if needed
			if (IsProminent) { dialog.MakeProminent(this.Id); }

			// Make sure this property is set
			ApplyPropertyChange("IsChecked");

			// Sync unmanaged properties with managed properties
			SyncUnmanagedProperties();
		}
开发者ID:GodLesZ,项目名称:svn-dump,代码行数:19,代码来源:CommonFileDialogCheckBox.cs


示例8: Attach

		/// <summary>
		/// Attach the Menu control to the dialog object.
		/// </summary>
		/// <param name="dialog">the target dialog</param>
		internal override void Attach(IFileDialogCustomize dialog) {
			Debug.Assert(dialog != null, "CommonFileDialogMenu.Attach: dialog parameter can not be null");

			// Add the menu control
			dialog.AddMenu(this.Id, this.Text);

			// Add the menu items
			foreach (CommonFileDialogMenuItem item in this.items)
				dialog.AddControlItem(this.Id, item.Id, item.Text);

			// Make prominent as needed
			if (IsProminent)
				dialog.MakeProminent(this.Id);

			// Sync unmanaged properties with managed properties
			SyncUnmanagedProperties();
		}
开发者ID:GodLesZ,项目名称:svn-dump,代码行数:21,代码来源:CommonFileDialogMenu.cs


示例9: Attach

		/// <summary>
		/// Attach the GroupBox control to the dialog object
		/// </summary>
		/// <param name="dialog">Target dialog</param>
		internal override void Attach(IFileDialogCustomize dialog) {
			Debug.Assert(dialog != null, "CommonFileDialogGroupBox.Attach: dialog parameter can not be null");

			// Start a visual group
			dialog.StartVisualGroup(this.Id, this.Text);

			// Add child controls
			foreach (CommonFileDialogControl item in this.items) {
				item.HostingDialog = HostingDialog;
				item.Attach(dialog);
			}

			// End visual group
			dialog.EndVisualGroup();

			// Make this control prominent if needed
			if (IsProminent)
				dialog.MakeProminent(this.Id);

			// Sync unmanaged properties with managed properties
			SyncUnmanagedProperties();
		}
开发者ID:GodLesZ,项目名称:svn-dump,代码行数:26,代码来源:CommonFileDialogGroupBox.cs


示例10: OnCheckButtonToggled

            public void OnCheckButtonToggled(IFileDialogCustomize pfdc, int dwIDCtl, bool bChecked)
            {
                // Find control
                DialogControl control = this.parent.controls.GetControlbyId(dwIDCtl);

                CommonFileDialogCheckBox box = control as CommonFileDialogCheckBox;
                // Update control and call corresponding event
                if (box != null)
                {
                    box.IsChecked = bChecked;
                    box.RaiseCheckedChangedEvent();
                }
            }
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:13,代码来源:CommonFileDialog.cs


示例11: OnButtonClicked

 public void OnButtonClicked(IFileDialogCustomize pfdc, int dwIDCtl)
 {
     // Find control
     DialogControl control = this.parent.controls.GetControlbyId(dwIDCtl);
     CommonFileDialogButton button = control as CommonFileDialogButton;
     // Call corresponding event
     if (button != null)
     {
         button.RaiseClickEvent();
     }
 }
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:11,代码来源:CommonFileDialog.cs


示例12: OnItemSelected

            public void OnItemSelected(IFileDialogCustomize pfdc, int dwIDCtl, int dwIDItem)
            {
                // Find control
                DialogControl control = this.parent.controls.GetControlbyId(dwIDCtl);

                ICommonFileDialogIndexedControls controlInterface;
                CommonFileDialogMenu menu;

                // Process ComboBox and/or RadioButtonList                
                if ((controlInterface = control as ICommonFileDialogIndexedControls) != null)
                {
                    // Update selected item and raise SelectedIndexChanged event                    
                    controlInterface.SelectedIndex = dwIDItem;
                    controlInterface.RaiseSelectedIndexChangedEvent();
                }
                // Process Menu
                else if ((menu = control as CommonFileDialogMenu) != null)
                {
                    // Find the menu item that was clicked and invoke it's click event
                    foreach (CommonFileDialogMenuItem item in menu.Items)
                    {
                        if (item.Id == dwIDItem)
                        {
                            item.RaiseClickEvent();
                            break;
                        }
                    }
                }
            }
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:29,代码来源:CommonFileDialog.cs


示例13: GetCustomizedFileDialog

 /// <summary>
 /// Get the IFileDialogCustomize interface, preparing to add controls.
 /// </summary>
 private void GetCustomizedFileDialog()
 {
     if (customize == null)
     {
         if (nativeDialog == null)
         {
             InitializeNativeFileDialog();
             nativeDialog = GetNativeFileDialog();
         }
         customize = (IFileDialogCustomize)nativeDialog;
     }
 }
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:15,代码来源:CommonFileDialog.cs


示例14: OnButtonClicked

            public void OnButtonClicked(IFileDialogCustomize pfdc, int dwIDCtl)
            {
                // Find control
                DialogControl control = this.parent.controls.GetControlbyId(dwIDCtl);

                // Call corresponding event
                if (control is CommonFileDialogButton)
                {
                    ((CommonFileDialogButton)control).RaiseClickEvent();
                }
            }
开发者ID:overeemm,项目名称:JoomlaPodcaster,代码行数:11,代码来源:CommonFileDialog.cs


示例15: Attach

 /// <summary>
 /// Attach this control to the dialog object
 /// </summary>
 /// <param name="dialog">Target dialog</param>
 internal override void Attach(IFileDialogCustomize dialog)
 {
     // Items are added via the menu itself
 }
开发者ID:Corillian,项目名称:Windows-API-Code-Pack-1.1,代码行数:8,代码来源:CommonFileDialogMenu.cs


示例16: OnButtonClicked

        public void OnButtonClicked(IFileDialogCustomize pfdc, int dwIDCtl)
        {

        }
开发者ID:jira-sarec,项目名称:ICSE-2012-TraceLab,代码行数:4,代码来源:TraceLabSaveAsDialogEvents.cs


示例17: OnCheckButtonToggled

 public void OnCheckButtonToggled(IFileDialogCustomize pfdc, int dwIDCtl, bool bChecked)
 {
     // TODO: Implement OnCheckButtonToggled
 }
开发者ID:ssickles,项目名称:archive,代码行数:4,代码来源:CommonFileDialog.cs


示例18: OnItemSelected

 public void OnItemSelected(IFileDialogCustomize pfdc, int dwIDCtl, int dwIDItem)
 {
     // TODO: Implement OnItemSelected
 }
开发者ID:ssickles,项目名称:archive,代码行数:4,代码来源:CommonFileDialog.cs


示例19: OnButtonClicked

 public void OnButtonClicked(IFileDialogCustomize pfdc, int dwIDCtl)
 {
     if( dwIDCtl == FileDialog.HelpButtonId )
         _dialog.DoHelpRequest();
 }
开发者ID:divyang4481,项目名称:lextudio,代码行数:5,代码来源:VistaFileDialogEvents.cs


示例20: OnCheckButtonToggled

        public void OnCheckButtonToggled(IFileDialogCustomize pfdc, int dwIDCtl, bool bChecked)
        {

        }
开发者ID:jira-sarec,项目名称:ICSE-2012-TraceLab,代码行数:4,代码来源:TraceLabSaveAsDialogEvents.cs



注:本文中的IFileDialogCustomize类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IFileInfo类代码示例发布时间:2022-05-24
下一篇:
C# IFileDialog类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap