private void btnWMIAlign_Click(object sender, EventArgs e) { frmCA objCA = new frmCA(); objCA.ContentAlignment = this.textAlign; DialogResult res = objCA.ShowDialog(); if (res != DialogResult.OK) return; Application.DoEvents(); this.imageAlign = objCA.ContentAlignment; }
private void btnWMIAlign_Click(object sender, EventArgs e) { frmCA objCA = new frmCA(); objCA.ContentAlignment = this.textAlign; DialogResult res = objCA.ShowDialog(); if (res != DialogResult.OK) { return; } Application.DoEvents(); this.imageAlign = objCA.ContentAlignment; }
private void ribbonTextOp4_DoubleClick(object sender, EventArgs e) { frmCA objCA = new frmCA(); objCA.ContentAlignment = this.imageAlign; DialogResult res = objCA.ShowDialog(); if (res != DialogResult.OK) return; Application.DoEvents(); undoHelper.ImageAlign = this.ImageAlign; this.imageAlign = objCA.ContentAlignment; Application.DoEvents(); FilterEffects(); }