public MediaWriteOptions(IApplicationComponent component) { InitializeComponent(); _component = (MediaWriterOptionsComponent)component; this.UserStagingFolder.DataBindings.Add("Text", _component, "UserStagingFolder", true, DataSourceUpdateMode.OnPropertyChanged); this.IncludePortableWorkstation.DataBindings.Add("Checked", _component, "IncludePortableWorkstation", true, DataSourceUpdateMode.OnPropertyChanged); this.IncludeIdeographicNames.DataBindings.Add("Checked", _component, "IncludeIdeographicNames", true, DataSourceUpdateMode.OnPropertyChanged); this.IncludePhoneticNames.DataBindings.Add("Checked", _component, "IncludePhoneticNames", true, DataSourceUpdateMode.OnPropertyChanged); this.DeleteStagedFilesOnCompleted.DataBindings.Add("Checked", _component, "DeleteStagedFilesOnCompleted", true, DataSourceUpdateMode.OnPropertyChanged); this.VerifyMediaOnCompleted.DataBindings.Add("Checked", _component, "VerifyMediaOnCompleted", true, DataSourceUpdateMode.OnPropertyChanged); this.EjectMediaOnCompleted.DataBindings.Add("Checked", _component, "EjectMediaOnCompleted", true, DataSourceUpdateMode.OnPropertyChanged); this.Save.Click += delegate(object sender, EventArgs args) { _component.Save(); }; this.Cancel.Click += delegate(object sender, EventArgs e) { _component.Cancel(); }; }
public void SetComponent(IApplicationComponent component) { _component = (MediaWriterOptionsComponent)component; }