public SplashWindow()
 {
     InitializeComponent();
     showDelegate = new ShowDelegate(this.showText);
     hideDelegate = new HideDelegate(this.hideText);
     Showboard    = this.Resources["showStoryBoard"] as Storyboard;
     Hideboard    = this.Resources["HideStoryBoard"] as Storyboard;
 }
Esempio n. 2
0
 public SplashWindow()
 {
     InitializeComponent();
     showDelegate = new ShowDelegate(this.showText);
     hideDelegate = new HideDelegate(this.hideText);
     Showboard = this.Resources["showStoryBoard"] as Storyboard;
     Hideboard = this.Resources["HideStoryBoard"] as Storyboard;
 }
 public BluEnergyXDesignerStart()
 {
     InitializeComponent();
     showDelegate = new ShowDelegate(this.showText);
     hideDelegate = new HideDelegate(this.hideText);
     Showboard    = this.Resources["showStoryBoard"] as Storyboard;
     Hideboard    = this.Resources["HideStoryBoard"] as Storyboard;
 }
Esempio n. 4
0
        public SplashWindow()
        {
            InitializeComponent();
            _showDelegate = ShowText;
            _hideDelegate = HideText;

            _showboard = Resources["showStoryBoard"] as Storyboard;
            _hideboard = Resources["hideStoryBoard"] as Storyboard;
        }
Esempio n. 5
0
        public Splash()
        {
            this.InitializeComponent();
            Showboard2 = this.Resources["Storyboard2"] as Storyboard;
            Showboard2.Seek(new TimeSpan(0));

            Loaded += Window_Loaded;
            loadme  = new ShowDelegate(Animate);
        }
 public BluEnergyXDesignerStart()
 {
     InitializeComponent();
     showDelegate = new ShowDelegate(this.showText);
     hideDelegate = new HideDelegate(this.hideText);
     Showboard = this.Resources["showStoryBoard"] as Storyboard;
     Hideboard = this.Resources["HideStoryBoard"] as Storyboard;
 
 }
Esempio n. 7
0
 public SplashScreen(string version)
 {
     InitializeComponent();
     AboutStr.Text = version;
     showDelegate  = new ShowDelegate(this.showText);
     hideDelegate  = new HideDelegate(this.hideText);
     Showboard     = this.Resources["showStoryBoard"] as Storyboard;
     Hideboard     = this.Resources["HideStoryBoard"] as Storyboard;
 }
 public MainWindow()
 {
     InitializeComponent();
     showDelegate = new ShowDelegate(this.showText);
     Loaded      += (x, y) =>
     {
         loadingThread = new Thread(Load);
         loadingThread.Start();
     };
 }
Esempio n. 9
0
        public SplashWindow()
        {
            InitializeComponent();

            string DriveApplicationVersion = bycar3.Properties.Settings.Default.DriveApplicationVersion;
            string DriveDatabaseVersion = bycar3.Properties.Settings.Default.DriveDatabaseVersion;
            edtVersion.Text = "версия " + DriveApplicationVersion + "-" + DriveDatabaseVersion;
            showDelegate = new ShowDelegate(this.showText);
            hideDelegate = new HideDelegate(this.hideText);
            Showboard = this.Resources["showStoryBoard"] as Storyboard;
            Hideboard = this.Resources["HideStoryBoard"] as Storyboard;
        }
 public OfferTextControl()
 {
     InitializeComponent();
     this.DataContext = ssvm;
     showDelegate     = new ShowDelegate(this.showText);
     Showboard        = this.Resources["showStoryBoard"] as Storyboard;
     _timer           = new DispatcherTimer {
         Interval = TimeSpan.FromMilliseconds(5000)
     };
     _timer.Tick += new EventHandler(TimerTick);
     _timer.Start();
 }
Esempio n. 11
0
 private void ExceptionHandle(string message, Socket socket)
 {
     if (Receive_RichTextBox.InvokeRequired)
     {
         var d = new ShowDelegate(ExceptionShow);
         Receive_RichTextBox.Invoke(d, new object[] { message, socket });
     }
     else
     {
         ExceptionShow(message, socket);
     }
 }
Esempio n. 12
0
 private void ShowProgress(int pct)
 {
     if (InvokeRequired)
     {
         ShowDelegate del = new ShowDelegate(ShowProgress);
         //또는 ShowDelegate del = p => ShowProgress(p);
         Invoke(del, pct);
     }
     else
     {
         progressBar1.Value = pct;
     }
 }
Esempio n. 13
0
        public SplashWindow()
        {
            InitializeComponent();


            string DriveApplicationVersion = bycar3.Properties.Settings.Default.DriveApplicationVersion;
            string DriveDatabaseVersion    = bycar3.Properties.Settings.Default.DriveDatabaseVersion;

            edtVersion.Text = "версия " + DriveApplicationVersion + "-" + DriveDatabaseVersion;
            showDelegate    = new ShowDelegate(this.showText);
            hideDelegate    = new HideDelegate(this.hideText);
            Showboard       = this.Resources["showStoryBoard"] as Storyboard;
            Hideboard       = this.Resources["HideStoryBoard"] as Storyboard;
        }
 public static void CalculateAndWrite(
     ShowDelegate showDelegate,
     Func <int, bool> calculateLeapYear,
     int year)
 {
     if (calculateLeapYear(year))
     {
         showDelegate("Is a leap year.");
     }
     else
     {
         showDelegate("Is not a leap year.");
     }
 }
Esempio n. 15
0
        public static void Main()
        {
            ShowDelegate display = Number;

            // ShowDelegate display = new ShowDelegate(Number);
            display(42);
            display(100);
            display.Invoke(50);
            System.Console.WriteLine("Delgate object: {0}", returnNum());

            display = Money;
            display(42);
            display(200);
            System.Console.WriteLine("Delegate object: {0}", returnNum() / 42);
        }
Esempio n. 16
0
    public void UsesShowDelegateToDisplayMessage()
    {
        bool         delegateWasCalled = false;
        ShowDelegate mockShowDelegate  = delegate(string text, string caption)
        {
            Assert.AreEqual("the expected message", text);
            Assert.AreEqual("the expected title", caption);
            delegateWasCalled = true;
        };

        ErrorDialogHelper helper = new ErrorDialogHelper(showDelegate);

        helper.ShowErrorMessage("the expected message", "the expected title");
        Assert.IsTrue(delegateWasCalled);
    }
Esempio n. 17
0
        private static void Main()
        {
            //A2 push
            var program1 = new Program()
            {
                Person1 = new Person()
                {
                    Id = 1, Name = "Ali"
                }
            };
            ShowDelegate sd = program1.Func1;

            sd += program1.Func2;
            sd(1);
            sd -= program1.Func1;
            sd(2);

            sd = Person.Method;
            sd(12);
            Console.ReadKey();
Esempio n. 18
0
 // Use this for initialization
 void Start()
 {
     ShowDelegate sd = new ShowDelegate ();
     sd.onDamage = printDamage;
     sd.DoDamage (10);
 }
Esempio n. 19
0
 /// <summary>
 /// 项目内容类型
 /// </summary>
 /// <param name="deviceQueryResult"></param>
 /// <param name="response"></param>
 /// <param name="database"></param>
 public static void ShowType(this IList<ContentType> deviceQueryResult, HttpResponse response, IDatabase database)
 {
     ShowDelegate<ContentType> showDelegate = new ShowDelegate<ContentType>(ShowProjectContentType);
     deviceQueryResult.Show<ContentType>(response,  showDelegate);
 }
Esempio n. 20
0
 private void ShowMessage(string message, ShowDelegate show)
 {
     show(message);
 }
Esempio n. 21
0
 public SplashWindow()
 {
     InitializeComponent();
     showDelegate = new ShowDelegate(this.ShowText);
     MessageStack = new Queue <string>();
 }
Esempio n. 22
0
 /// <summary>
 /// 显示查询院系列表
 /// </summary>
 /// <param name="list"></param>
 /// <param name="response"></param>
 public static void ShowAsSearchRecord(this IList<College> list, HttpResponse response)
 {
     ShowDelegate<College> showDelegate = new ShowDelegate<College>(ShowAsUserSearchRecord);
     list.Show<College>(response, showDelegate);
 }
Esempio n. 23
0
 public StructureNode(string text, ShowDelegate show, object pass)
     : base(text)
 {
     Show = show;
     Pass = pass;
 }
 public void Run()
 {
     ShowAction = HelloShow;
     ShowAction();
 }
  public AsyncDelegate(){
    ayncDlgt = new ShowDelegate(AsyncWaitingShow);

  }