Exemple #1
0
 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);
        }
Exemple #3
0
        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;
        }
    }
Exemple #5
0
 public TwitterService()
 {
     Source       = ESource.Twitter;
     _client      = new TwitterClient(Settings.Default.UserAgent);
     _lastRequest = DateTimeOffset.MinValue;
 }
Exemple #6
0
 protected ParMain(ESource _Source, string _path, string _file, string _schema, string _Unit, string _file_desc)
     : base(_Source, _path, _file, _schema, _Unit, _file_desc)
 {
 }
Exemple #7
0
        //[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;
        }
Exemple #8
0
 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;
 }
Exemple #9
0
 public KillPlayerEA(ESource source)
 {
     Source = source;
 }
Exemple #10
0
 Stream Tcp_OnCreateStream(object sender, Stream stream, ESource owner)
 {
     return(stream);
 }
Exemple #11
0
 public MetaPar(ESource _Source, ParMainLite _parMainLite)
 {
     Source      = _Source;
     parMainLite = _parMainLite;
     metaDesc    = new MetaDesc();
 }
Exemple #12
0
 public ProxyByteDataEventArgs(byte[] bytes, ESource source)
 {
     Bytes  = bytes;
     Source = source;
 }
 public YoutubeService()
 {
     Source  = ESource.Youtube;
     _client = new YoutubeClient(Settings.Default.UserAgent);
 }
Exemple #14
0
 public RssService()
 {
     Source = ESource.RSS;
 }
Exemple #15
0
 public RedditService()
 {
     Source = ESource.Reddit;
 }
Exemple #16
0
 public AppSourceList(ESource source)
 {
     Source  = source;
     Sources = new BindableCollection <DBSubscription>();
 }