/// <summary> /// Options form from the tray menu /// </summary> private void TrayOptions_Click(object sender, System.EventArgs e) { OptionsForm of = new OptionsForm(_profileManager); of.ShowDialog( this ); }
private void bOptions_Click(object sender, System.EventArgs e) { // Do not acces the container from a static refference, should be solved better TheBox.Forms.OptionsForm form = new TheBox.Forms.OptionsForm(Pandora.Container.Resolve<ProfileManager>()); form.ShowDialog(); }
private void bOptions_Click(object sender, System.EventArgs e) { // Do not acces the container from a static refference, should be solved better TheBox.Forms.OptionsForm form = new TheBox.Forms.OptionsForm(Pandora.Container.Resolve <ProfileManager>()); form.ShowDialog(); }