public frmPowerEffect(IEffect iFX) { this.Loading = true; this.InitializeComponent(); this.Load += new EventHandler(this.frmPowerEffect_Load); System.ComponentModel.ComponentResourceManager componentResourceManager = new System.ComponentModel.ComponentResourceManager(typeof(frmPowerEffect)); this.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon"); this.myFX = (IEffect)iFX.Clone(); }
public frmPowerEffect(IEffect iFX) { Loading = true; InitializeComponent(); Load += frmPowerEffect_Load; ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmPowerEffect)); Icon = (Icon)componentResourceManager.GetObject("$this.Icon"); myFX = (IEffect)iFX.Clone(); }
void btnCSV_Click(object sender, EventArgs e) { IEffect effect = (IEffect)myFX.Clone(); try { effect.ImportFromCSV(Clipboard.GetDataObject()?.GetData("System.String", true).ToString()); } catch (Exception ex) { ProjectData.SetProjectError(ex); int num = (int)Interaction.MsgBox(ex.Message); ProjectData.ClearProjectError(); return; } myFX.ImportFromCSV(Clipboard.GetDataObject()?.GetData("System.String", true).ToString()); DisplayEffectData(); }