示例#1
0
        private void radButtonRelocate_Click(object sender, EventArgs e)
        {
            WindowInstance selectedWindow = (WindowInstance)radDropDownListWindow.SelectedItem.Value;
            Screen         selectedScreen = (Screen)radDropDownListScreen.SelectedItem.Value;
            int            x = StringFormatter.ToInt(radTextBoxX.Text, 0);
            int            y = StringFormatter.ToInt(radTextBoxY.Text, 0);

            Relocator.Relocate(selectedWindow.handerId, selectedScreen, x, y, radCheckBoxRemoveTitle.Checked);
        }
示例#2
0
 /// <summary>
 /// Changes the CurrentDirectory to the new location and updates other properties.
 /// </summary>
 public virtual void Relocate(string path)
 {
     Relocator.Relocate(path);
 }