private void button9_Click(object sender, EventArgs e) { MaskGenFrm mgf = new MaskGenFrm(); PopupEditor pe = new PopupEditor(); pe.ShowPopup(this, mgf); }
private void previewToolStripMenuItem_Click(object sender, EventArgs e) { MaskItem mClickedItem = ((MaskItem)MaskCheckList.Items[MaskCheckList.SelectedIndex]); if (mClickedItem.mMask is GraphBasedMask) { GraphBasedMask gbp = (GraphBasedMask)mClickedItem.mMask; MaskGenFrm mgf = new MaskGenFrm(); mgf.loadCanvasFromMemoryStream(gbp.GraphMemStream); PopupEditor pe = new PopupEditor(); pe.ShowPopup(this, mgf); } else { } }