Exemplo n.º 1
0
        private void updateButton_Click(object sender, EventArgs e)
        {
            WindowLocationSelector winSelect = new WindowLocationSelector(m_config, SelectedLocatedWindow.WindowGUID,
                                                                          SelectedLocatedWindow.LocationGUID,
                                                                          SelectedLocatedWindow.AllowMultipleMatches);

            if (winSelect.ShowDialog() == DialogResult.OK)
            {
                SelectedLocatedWindow.LocationGUID         = winSelect.SelectedLocation.GUID;
                SelectedLocatedWindow.WindowGUID           = winSelect.SelectedWindow.GUID;
                SelectedLocatedWindow.AllowMultipleMatches = winSelect.AllowMultipleMatches;
            }
        }
Exemplo n.º 2
0
        private void addButton_Click(object sender, EventArgs e)
        {
            WindowLocationSelector winSelect = new WindowLocationSelector(m_config);

            if (winSelect.ShowDialog() == DialogResult.OK)
            {
                LocatedWindow locWin = new LocatedWindow();

                locWin.LocationGUID = winSelect.SelectedLocation.GUID;
                locWin.WindowGUID   = winSelect.SelectedWindow.GUID;

                SelectedArrangement.WindowPositions.Add(locWin);
            }
        }