public MainWindow() { InitializeComponent(); // Window Measures window = this; height = this.Height; width = this.Width; myWindow = new MyWindow(height, width); myClick = new MyClick(); // Initialize Frames stocks = new Stocks(); addStock = new AddStock(); dados = new Dados(); logIn = new LogIn(); mainPage = new MainPage(); settings = new Settings(); venda = new Venda(); framename.Navigate(logIn); }
public Delegate[] GetClickHandlers() { return(MyClick?.GetInvocationList()); }
protected override void OnClick(EventArgs e) { base.OnClick(e); ClickCount++; MyClick?.Invoke(this, new MyEventArgs(ClickCount)); }
private void btn_Button_Click(object sender, EventArgs e) { MyClick?.Invoke(sender, e); }