protected ParMainLite(ESource _Source, string _path, string _file, string _schema, string _Unit, string _file_desc) { Source = _Source; Parent = null; PropertyIndex = -1; PropertyName = _path; file_desc = _file_desc; file = _file; schema = _schema; Unit = _Unit; MP = new MetaPar(_Source, this); MP.LoadTree(file, schema, Unit); }
Stream Proxy_OnCreateStream(object sender, Stream stream, ESource owner) { var proxy = (TcpInvisibleProxy)sender; var socket = (TuringSocket)proxy.Tag; switch (Type) { case EFuzzingType.Server: return(owner == ESource.Server ? stream : new TuringStream(socket, stream)); case EFuzzingType.Client: return(owner == ESource.Client ? stream : new TuringStream(socket, stream)); } return(stream); }
public static void Create(string _tname) { ESource Source = ESource.File; string fname = Path.ChangeExtension(Application.ExecutablePath, "file"); if (!File.Exists(fname)) { fname = Path.ChangeExtension(Application.ExecutablePath, "udl"); if (File.Exists(fname)) { Source = ESource.SQL; } } Instance = new ParAll(Source, Path.ChangeExtension(Application.ExecutablePath, "tree"), "dbo", _tname, Path.ChangeExtension(Application.ExecutablePath, "xml")); Instance.Defect.IsDBS = Source == ESource.SQL; }
public void PlaySound(ESource source, AudioClip clip) { switch (source) { case ESource.Megaman: megamanSounds.clip = clip; megamanSounds.Play(); break; case ESource.Shooting: shootingSounds.clip = clip; shootingSounds.Play(); break; case ESource.Enemy: enemySounds.clip = clip; enemySounds.Play(); break; default: break; } }
public TwitterService() { Source = ESource.Twitter; _client = new TwitterClient(Settings.Default.UserAgent); _lastRequest = DateTimeOffset.MinValue; }
protected ParMain(ESource _Source, string _path, string _file, string _schema, string _Unit, string _file_desc) : base(_Source, _path, _file, _schema, _Unit, _file_desc) { }
//[Browsable(true), De] //public PipeServerPars PipeServer { get; set; } ParAll(ESource _Source, string _file, string _schema, string _tname, string _file_desc) : base(_Source, "ParAll.ST", _file, _schema, _tname, _file_desc) { Schema = _schema; }
public static void Create(string _tname, ESource _Source) { Instance = new ParAll(_Source, Path.ChangeExtension(Application.ExecutablePath, "tree"), "dbo", _tname, Path.ChangeExtension(Application.ExecutablePath, "xml")); Instance.Defect.IsDBS = _Source == ESource.SQL; }
public KillPlayerEA(ESource source) { Source = source; }
Stream Tcp_OnCreateStream(object sender, Stream stream, ESource owner) { return(stream); }
public MetaPar(ESource _Source, ParMainLite _parMainLite) { Source = _Source; parMainLite = _parMainLite; metaDesc = new MetaDesc(); }
public ProxyByteDataEventArgs(byte[] bytes, ESource source) { Bytes = bytes; Source = source; }
public YoutubeService() { Source = ESource.Youtube; _client = new YoutubeClient(Settings.Default.UserAgent); }
public RssService() { Source = ESource.RSS; }
public RedditService() { Source = ESource.Reddit; }
public AppSourceList(ESource source) { Source = source; Sources = new BindableCollection <DBSubscription>(); }