示例#1
0
        private async void brandsButton_Click(object sender, EventArgs e)
        {
            Hide();

            await using (var presenter = new BrandListPresenter(true))
                presenter.ShowView();

            await SetCountToolTips();

            Show();
        }
示例#2
0
        public BrandItemView(BrandListPresenter presenter)
        {
            InitializeComponent();
            Disposed += OnDispose;

            _presenter = presenter;

            if (presenter.AdminMode)
            {
                return;
            }

            mainButton.Text      = "Seç";
            deleteButton.Visible = false;
        }