Пример #1
0
        private void btnExportAll_Click(object sender, EventArgs e)
        {
            saveIconsWnd exportWindow = new saveIconsWnd(lstIcons.Items, lIconHandles, GetIconSize());

            if (chkChildWindows.Checked)
            {
                exportWindow.Opacity = this.Opacity;
            }

            if (exportWindow.ShowDialog() == DialogResult.OK)
            {
                MessageBox.Show("Export successful.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Пример #2
0
        private void btnExportSelected_Click(object sender, EventArgs e)
        {
            saveIconsWnd exportWindow;

            if (lstIcons.SelectedItems.Count < 1)
            {
                MessageBox.Show("Please select one or more icons first.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            exportWindow = new saveIconsWnd(lstIcons.SelectedItems, lIconHandles, GetIconSize());
            if (chkChildWindows.Checked)
            {
                exportWindow.Opacity = this.Opacity;
            }

            if (exportWindow.ShowDialog() == DialogResult.OK)
            {
                MessageBox.Show("Export successful.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }