示例#1
0
        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());
 }
示例#3
0
 protected override void OnClick(EventArgs e)
 {
     base.OnClick(e);
     ClickCount++;
     MyClick?.Invoke(this, new MyEventArgs(ClickCount));
 }
示例#4
0
 private void btn_Button_Click(object sender, EventArgs e)
 {
     MyClick?.Invoke(sender, e);
 }