Пример #1
0
        private void btnExportOptions_Click(object sender, EventArgs e)
        {
            var properties = new SelectPropertiesWindow {
                StartPosition = FormStartPosition.CenterParent
            };

            properties.ShowDialog();
        }
Пример #2
0
        private void btnExportOptions_Click(object sender, EventArgs e)
        {
            var properties = new SelectPropertiesWindow {StartPosition = FormStartPosition.CenterParent};

            properties.ShowDialog();
        }
Пример #3
0
        private void btnExportOptions_Click(object sender, EventArgs e)
        {
            SelectPropertiesWindow properties = new SelectPropertiesWindow();

            properties.StartPosition = FormStartPosition.CenterParent;

            DialogResult result = properties.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                SelectPropertiesWindow.PropertiesToExport.Clear();

                foreach (Object p in properties.chkListBoxProps.CheckedItems)
                    SelectPropertiesWindow.PropertiesToExport.Add(p.ToString());

                foreach (string s in SelectPropertiesWindow.PropertiesToExport)
                    Console.WriteLine(s);
            }
        }