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; }
public SplashWindow() { InitializeComponent(); _showDelegate = ShowText; _hideDelegate = HideText; _showboard = Resources["showStoryBoard"] as Storyboard; _hideboard = Resources["hideStoryBoard"] as Storyboard; }
public Splash() { this.InitializeComponent(); Showboard2 = this.Resources["Storyboard2"] as Storyboard; Showboard2.Seek(new TimeSpan(0)); Loaded += Window_Loaded; loadme = new ShowDelegate(Animate); }
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(); }; }
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(); }
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); } }
private void ShowProgress(int pct) { if (InvokeRequired) { ShowDelegate del = new ShowDelegate(ShowProgress); //또는 ShowDelegate del = p => ShowProgress(p); Invoke(del, pct); } else { progressBar1.Value = pct; } }
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."); } }
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); }
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); }
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();
// Use this for initialization void Start() { ShowDelegate sd = new ShowDelegate (); sd.onDamage = printDamage; sd.DoDamage (10); }
/// <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); }
private void ShowMessage(string message, ShowDelegate show) { show(message); }
public SplashWindow() { InitializeComponent(); showDelegate = new ShowDelegate(this.ShowText); MessageStack = new Queue <string>(); }
/// <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); }
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); }