Ejemplo n.º 1
0
    static void Main(string[] args)
    {
        Interesting i = new Interesting();
        Curious     c = new Curious(i);

        i.Wiggle();
    }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var interesting = new Interesting();

            interesting.Name = textBox1.Text;
            Program.interestings.AddInterest(interesting);
            ClearAll();
            MessageBox.Show("Dodano element");
        }
Ejemplo n.º 3
0
            public void DeepUsage(ISymbol symbol)
            {
                if (symbol == null)
                {
                    return;
                }
                TypeCompilationContext type;

                if (!Interesting.TryGetValue(symbol, out type))
                {
                    return;
                }
                Add(type, StrengthKind.DeepUsage);
            }
Ejemplo n.º 4
0
 public FakeUserInfo(int id)
 {
     Id            = id;
     JobNumber     = RandomHelper.Next().ToString();
     Name          = FakeName.MakeFakeUserName();
     EntryTime     = RandomHelper.Bool() ? DateTime.Now.Subtract(TimeSpan.FromDays(RandomHelper.Next(2000))) : DateTime.Now.Subtract(TimeSpan.FromHours(RandomHelper.Next(1000)));
     Rank          = (int)DateTime.Now.Subtract(EntryTime).TotalDays * 2 + RandomHelper.Next(1000);
     Sex           = RandomHelper.Bool() ? "男" : "女";
     LastLoginTime = DateTime.Now;
     NickName      = FakeName.MakeFakeUserName();
     GroupName     = FakeName.MakeFakeGroupName();
     for (int i = 0; i < RandomHelper.Next(2, 6); i++)
     {
         Interesting.Add(FakeName.MakeFakeTag());
     }
     Signature = "yooooooooooo";
     Image     = FakeImage.MakeFakeImage();
 }
Ejemplo n.º 5
0
 public Curious(Interesting i)
 {
     i.Change += new ChangeHandler(React);
 }
Ejemplo n.º 6
0
 public void AddInterest(Interesting interest)
 {
     interestings.Add(interest);
 }