//Get colorSetting from color selected private void ColorElementExecuted(object param) { //Model.ColorSettings(); ColorSelectionDialog colorSelectionDialog = new ColorSelectionDialog(); colorSelectionDialog.Show(); RvtColorElement = colorSelectionDialog.SelectedColor; _ColorSettings.ColorElement = RvtColorElement; }
public static void Main(string[] args) { Application.Init(); ColorSelectionDialog colorSelectionDialog = new ColorSelectionDialog("Colourizmus S+"); colorSelectionDialog.Close += CloseProgram; colorSelectionDialog.DeleteEvent += CloseProgram; colorSelectionDialog.OkButton.Clicked += CopyToClipboard; colorSelectionDialog.CancelButton.Hide(); colorSelectionDialog.OkButton.Label = "Copy to clipboard"; _colorSelection = colorSelectionDialog.ColorSelection; _colorSelection.ColorChanged += CopyToClipboard; colorSelectionDialog.Show(); Application.Run(); }