static GlobalColorPicker() { color = new ColorWindow(300); gsWin = new GUIStyle("box"); gsWin.fontSize = Util.GetPix(12); gsWin.alignment = TextAnchor.UpperRight; }
//Call this methos with the external command public Result Execute(UIApplication uiapp) { try { var view = new ColorWindow(new ColorViewModel(uiapp, AppCommand.Handler)); return(Result.Succeeded); } catch (Exception ex) { System.Windows.Forms.MessageBox.Show("Error! " + ex); return(Result.Failed); } }
private void btnColor_Click(object sender, RoutedEventArgs e) { if (colorwindows == null) { colorwindows = new ColorWindow(); colorwindows.Show(); colorwindows.Closed += colorwindows_Closed; } else { colorwindows.Show(); } }
void OnEnable() { tex_bg = Resources.Load <Texture2D> ("GUISkin/Grid"); lst_chars.Add(new Character(this, "N/A", 7)); coordinate = Vector2.zero; colorWindow = new ColorWindow(); leftPanel = new LeftPanel(this); rightPanel = new RightPanel(this); GUISkin mySkin = Resources.Load <GUISkin> ("GUISkin/NodeSkin"); style_button = mySkin.GetStyle("button"); CreateNode(Vector2.zero, 0); //Selection.selectionChanged = LoadStoryAsset; }
void colorwindows_Closed(object sender, EventArgs e) { colorwindows = null; var isChange = (sender as ColorWindow).IsChangeData; if (!isChange) { return; } var dataContext = (MainWindowViewModel)this.DataContext; var userPrefs = new UserPreferences(); dataContext.SetBible(userPrefs.BibileLocation); //BibleBooksComboBox.SelectedIndex = BibleBooksComboBox.SelectedIndex; //cboDoan.SelectedIndex = cboDoan.SelectedIndex; }