Format:
Recent snippets matching tags of TOP
public class BadNeighbors { public int maxDonations(int[] donations){ if(donations.length == 2)return Math.max(donations[0], donations[1]); int ret = 0; int [] dp = new int [donations.length]; dp[0] = donations[0]; dp[dp.length-1] = donations[dp.length-1]; boolean [] one = new boolean [dp.length]; one[0] = true;
64 Views
no comments
Public Sub ExportToPDF(ByVal _PathFilePDF As String) Dim Report As New ReportDocument Report.Load(PathReport) Report.RecordSelectionFormula = RecordSelectionFormula Report.Refresh() Report.ExportToDisk(ExportFormatType.PortableDocFormat, _PathFilePDF) End Sub
118 Views
no comments
using System; using System.Collections.Generic; using System.Net; using System.IO; using System.Text; namespace LoginFormAppModule { class Program {
222 Views
no comments
<ResourceDictionary xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > <DataTemplate x:Key="SmallLogoTemplate"> <Image ... /> </DataTemplate> <DataTemplate x:Key="LargeLogoTemplate"> <Image ... />
143 Views
no comments
public class YourPlugin : IPlugin { private static ResourceDictionary _Resources; public static DataTemplate SmallIconTemplate { get {
165 Views
no comments
string res = string.Empty; try { IQuery query = session.CreateQuery("select ao.CostCenterAccount from " + "AssetObservation as ao where ao.Asset.ID=:KEY " + "and ao.Date<:DATETIME order by Date asc"); query.SetInt64("KEY", asset.Id); query.SetDateTime("DATETIME", dateTime);
627 Views
1 comments
Public Class ProjectInstaller Private Const LOG_SOURCE As String = "Log" Private Const LOG_LOG As String = "Log" Private _mainEventLog As EventLog Public Sub New() MyBase.New() 'This call is required by the Component Designer.
580 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
