public WholesalerFormController(WholesalerForm instance) { this.frmWholesaler = instance; this.srvWholesaler = SamsaraAppContext.Resolve <IWholesalerService>(); Assert.IsNotNull(this.srvWholesaler); this.InitializeFormControls(); }
private void mayoristasToolStripMenuItem_Click(object sender, EventArgs e) { try { this.Cursor = Cursors.WaitCursor; WholesalerForm frmWholesaler = new WholesalerForm(); frmWholesaler.Show(); } finally { this.Cursor = Cursors.Default; } }