public LoginForm() { InitializeComponent(); // Enable auto scan _msg = new MsgWindow(this); this.Closed += (s, args) => _msg.Dispose(); }
public void OpenShippingScreen(string deliveryOrderTag) { var view = new ShippingForm(); var repository = new Model.Object.ShippingRepository(); var presenter = new Presenter.ShippingPresenter(view, repository, deliveryOrderTag); presenter.Screen = Presenter.NextScreen; view.Closed += (s, args) => { _msg = new MsgWindow(this); this.Show(); }; this.Hide(); _msg.Dispose(); view.Show(); }
public ShippingForm() { InitializeComponent(); _msg = new MsgWindow(this); this.Closed += (s, args) => _msg.Dispose(); }
public ScanDeliveryOrderTagForm() { InitializeComponent(); _msg = new MsgWindow(this); this.Closed += (s, args) => _msg.Dispose(); }