本文整理汇总了C#中GLib.List类的典型用法代码示例。如果您正苦于以下问题:C# List类的具体用法?C# List怎么用?C# List使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
List类属于GLib命名空间,在下文中一共展示了List类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 ();
}
示例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);
}
}
示例3: ListStoreMapping
public ListStoreMapping()
{
store_types = new List<GType>();
callbacks = new List<GetStoreValueCallback>();
store_types.Add((GType)typeof(DataRow));
ColumnsStore = new NodeStore(typeof(ConfigurableColumn));
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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 ();
}
示例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));
}
示例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);
}
示例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));
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}