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

C# GLib.List类代码示例

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

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



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

示例1: PagoParcialDialog

 public PagoParcialDialog(Gtk.Window parent,string monto, List<Produc> listapago,string usuario)
 {
     this.listaPago_ = listapago;
     this.usuario_ = usuario;
     this.pagototal = monto;
     this.Build ();
 }
开发者ID:pelao,项目名称:punto,代码行数:7,代码来源:PagoParcialDialog.cs


示例2: Execute

		internal static async void Execute ()
		{
			var project = IdeApp.ProjectOperations.CurrentSelectedProject;
			if (project == null)
				return;
			var analysisProject = TypeSystemService.GetCodeAnalysisProject (project);
			if (analysisProject == null)
				return;
			try {
				using (var monitor = IdeApp.Workbench.ProgressMonitors.GetStatusProgressMonitor (GettextCatalog.GetString ("Analyzing project"), null, false, true, false, null, true)) {
					CancellationToken token = monitor.CancellationToken;
					var allDiagnostics = await Task.Run (async delegate {
						var diagnosticList = new List<Diagnostic> ();
						monitor.BeginTask (GettextCatalog.GetString ("Analyzing {0}", project.Name), 1);
						var providers = await AnalyzeWholeSolutionHandler.GetProviders (analysisProject);
						diagnosticList.AddRange (await AnalyzeWholeSolutionHandler.GetDiagnostics (analysisProject, providers, token));
						monitor.EndTask ();
						return diagnosticList;
					}).ConfigureAwait (false);

					await Runtime.RunInMainThread (delegate {
						AnalyzeWholeSolutionHandler.Report (monitor, allDiagnostics, project);
					}).ConfigureAwait (false);
				}
			} catch (OperationCanceledException) {
			} catch (AggregateException ae) {
				ae.Flatten ().Handle (ix => ix is OperationCanceledException);
			} catch (Exception e) {
				LoggingService.LogError ("Error while running diagnostics.", e);
			}
		}
开发者ID:kdubau,项目名称:monodevelop,代码行数:31,代码来源:AnalyzeCurrentProjectHandler.cs


示例3: ListStoreMapping

 public ListStoreMapping()
 {
     store_types = new List<GType>();
     callbacks = new List<GetStoreValueCallback>();
     store_types.Add((GType)typeof(DataRow));
     ColumnsStore = new NodeStore(typeof(ConfigurableColumn));
 }
开发者ID:langpavel,项目名称:LPS-old,代码行数:7,代码来源:ListStoreMapping.cs


示例4: ThreadedSocketService

		public ThreadedSocketService (int max_threads) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (ThreadedSocketService)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				names.Add ("max_threads");
				vals.Add (new GLib.Value (max_threads));
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			Raw = g_threaded_socket_service_new(max_threads);
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:12,代码来源:ThreadedSocketService.cs


示例5: InetAddress

		public InetAddress (GLib.SocketFamily family) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (InetAddress)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				names.Add ("family");
				vals.Add (new GLib.Value (family));
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			Raw = g_inet_address_new_any((int) family);
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:12,代码来源:InetAddress.cs


示例6: ZlibDecompressor

		public ZlibDecompressor (GLib.ZlibCompressorFormat format) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (ZlibDecompressor)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				names.Add ("format");
				vals.Add (new GLib.Value (format));
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			Raw = g_zlib_decompressor_new((int) format);
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:12,代码来源:ZlibDecompressor.cs


示例7: SimplePermission

		public SimplePermission (bool allowed) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (SimplePermission)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				names.Add ("allowed");
				vals.Add (new GLib.Value (allowed));
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			Raw = g_simple_permission_new(allowed);
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:12,代码来源:SimplePermission.cs


示例8: LoadItems

        protected void LoadItems(System.IO.FileInfo [] files)
        {
            List<IBrowsableItem> items = new List<IBrowsableItem> ();
            foreach (var f in files) {
                if (FSpot.ImageFile.HasLoader (f.FullName)) {
                    Console.WriteLine (f.FullName);
                    items.Add (new FileBrowsableItem (f.FullName));
                }
            }

            list = items;
            this.Reload ();
        }
开发者ID:iainlane,项目名称:f-spot,代码行数:13,代码来源:UriCollection.cs


示例9: Emblem

		public Emblem (GLib.IIcon icon) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (Emblem)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				if (icon != null) {
					names.Add ("icon");
					vals.Add (new GLib.Value (icon));
				}
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			Raw = g_emblem_new(icon == null ? IntPtr.Zero : ((icon is GLib.Object) ? (icon as GLib.Object).Handle : (icon as GLib.IconAdapter).Handle));
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:14,代码来源:Emblem.cs


示例10: UnixFDMessage

		public UnixFDMessage (GLib.UnixFDList fd_list) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (UnixFDMessage)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				if (fd_list != null) {
					names.Add ("fd_list");
					vals.Add (new GLib.Value (fd_list));
				}
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			Raw = g_unix_fd_message_new_with_fd_list(fd_list == null ? IntPtr.Zero : fd_list.Handle);
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:14,代码来源:UnixFDMessage.cs


示例11: FileIcon

		public FileIcon (GLib.IFile file) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (FileIcon)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				if (file != null) {
					names.Add ("file");
					vals.Add (new GLib.Value (file));
				}
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			Raw = g_file_icon_new(file == null ? IntPtr.Zero : ((file is GLib.Object) ? (file as GLib.Object).Handle : (file as GLib.FileAdapter).Handle));
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:14,代码来源:FileIcon.cs


示例12: Settings

		public Settings (string schema) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (Settings)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				names.Add ("schema");
				vals.Add (new GLib.Value (schema));
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			IntPtr native_schema = GLib.Marshaller.StringToPtrGStrdup (schema);
			Raw = g_settings_new(native_schema);
			GLib.Marshaller.Free (native_schema);
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:14,代码来源:Settings.cs


示例13: BookmarksItemProvider

		public BookmarksItemProvider ()
		{
			items = new List<AbstractDockItem> ();

			computer = new NonRemovableItem ("computer://", Catalog.GetString ("Computer"), "computer");
			home = FileDockItem.NewFromUri (string.Format ("file://{0}",
			    Environment.GetFolderPath (Environment.SpecialFolder.Personal)));
		
			UpdateItems ();
			
			watcher = FileMonitor.File (BookmarksFile, FileMonitorFlags.None, null);
			
			watcher.Changed += WatcherChanged;
		}
开发者ID:Aurora-and-Equinox,项目名称:docky,代码行数:14,代码来源:BookmarksItemProvider.cs


示例14: PagoChequeDialog

        public PagoChequeDialog(Gtk.Window parent,string monto, List<Produc> listapago,string usuario)
            : base("Pago Con Cheque", parent, Gtk.DialogFlags.DestroyWithParent)
        {
            this.listaPago_ = listapago;
            this.usuario_ = usuario;
            this.pagototal = monto;
            this.Build ();
            this.db = new ControladorBaseDatos();

            bool correcta = false;

            try {
                correcta = this.db.ConfiguracionCorrectaBd;
            }
            catch (Exception ex)
            {
                correcta = false;
            }
            if (!correcta)
            {

                this.db = null;
                this.db = new ControladorBaseDatos();

                correcta = false;

                try {
                    correcta = this.db.ConfiguracionCorrectaBd;
                }
                catch (Exception ex)
                {
                    correcta = false;
                }
            }

            comboboxBanco.AppendText("Santander");
            comboboxBanco.AppendText("Chile");
            comboboxBanco.AppendText("BCI");

            comboboxPlaza.AppendText("Valdivia");
            comboboxPlaza.AppendText("Santiago");
            comboboxPlaza.AppendText("Rancagua");
            comboboxPlaza.AppendText("Talca");
            comboboxPlaza.AppendText("Chillan");
            comboboxPlaza.AppendText("Concepcion");
            comboboxPlaza.AppendText("Osorno");
            comboboxPlaza.AppendText("Puerto Montt");

            entryMonto.Text=monto;
        }
开发者ID:pelao,项目名称:punto,代码行数:50,代码来源:PagoChequeDialog.cs


示例15: UnixSocketAddress

		public UnixSocketAddress (string path) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (UnixSocketAddress)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				names.Add ("path");
				vals.Add (new GLib.Value (path));
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup (path);
			Raw = g_unix_socket_address_new(native_path);
			GLib.Marshaller.Free (native_path);
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:14,代码来源:UnixSocketAddress.cs


示例16: UnixCredentialsMessage

		public UnixCredentialsMessage (GLib.Credentials credentials) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (UnixCredentialsMessage)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				if (credentials != null) {
					names.Add ("credentials");
					vals.Add (new GLib.Value (credentials));
				}
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			Raw = g_unix_credentials_message_new_with_credentials(credentials == null ? IntPtr.Zero : credentials.Handle);
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:14,代码来源:UnixCredentialsMessage.cs


示例17: BufferedOutputStream

		public BufferedOutputStream (GLib.OutputStream base_stream) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (BufferedOutputStream)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				if (base_stream != null) {
					names.Add ("base_stream");
					vals.Add (new GLib.Value (base_stream));
				}
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			Raw = g_buffered_output_stream_new(base_stream == null ? IntPtr.Zero : base_stream.Handle);
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:14,代码来源:BufferedOutputStream.cs


示例18: Initialize

        // Called when the NoteAddin is attached to a Note
        public override void Initialize()
        {
            csList = new List<CodeSnippetWindow> ();

            if (Note.TagTable.Lookup ("codesnippet_code") == null) {
                NoteTag codesnippet_code_tag = new NoteTag ("codesnippet_code");
                /* Invisible causes instability, replaced by Size = 1
                 * But it seems not to work in Windows. */
                codesnippet_code_tag.Invisible = true;
                codesnippet_code_tag.Size = 1;
                codesnippet_code_tag.Editable = false;
                codesnippet_code_tag.CanSerialize = false;
                Note.TagTable.Add (codesnippet_code_tag);
            }
        }
开发者ID:chaoschaos,项目名称:codesnippet,代码行数:16,代码来源:CodeSnippet.cs


示例19: InetSocketAddress

		public InetSocketAddress (GLib.InetAddress address, ushort port) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (InetSocketAddress)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				if (address != null) {
					names.Add ("address");
					vals.Add (new GLib.Value (address));
				}
				names.Add ("port");
				vals.Add (new GLib.Value (port));
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			Raw = g_inet_socket_address_new(address == null ? IntPtr.Zero : address.Handle, port);
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:16,代码来源:InetSocketAddress.cs


示例20: NetworkAddress

		public NetworkAddress (string hostname, ushort port) : base (IntPtr.Zero)
		{
			if (GetType () != typeof (NetworkAddress)) {
				var vals = new List<GLib.Value> ();
				var names = new List<string> ();
				names.Add ("hostname");
				vals.Add (new GLib.Value (hostname));
				names.Add ("port");
				vals.Add (new GLib.Value (port));
				CreateNativeObject (names.ToArray (), vals.ToArray ());
				return;
			}
			IntPtr native_hostname = GLib.Marshaller.StringToPtrGStrdup (hostname);
			Raw = g_network_address_new(native_hostname, port);
			GLib.Marshaller.Free (native_hostname);
		}
开发者ID:akrisiun,项目名称:gtk-sharp,代码行数:16,代码来源:NetworkAddress.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# GLib.Value类代码示例发布时间:2022-05-26
下一篇:
C# GLib.GType类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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