void btnAddTemplate_Click(object sender, System.EventArgs e) { SettingDialog settingDialog = new SettingDialog(); string name = InputDialog.GetInputValue("New Template"); if (name != null) { TemplateGroup group = new TemplateGroup(); group.Name = name; DataGate.Project.Templates.Add(group); SettingDialog.Display(group, this); BindCombox(); if (SettingDialog.CurrentGroup != null) { ddlTemplate.SelectedItem = SettingDialog.CurrentGroup; CurrentTemplateGroup = SettingDialog.CurrentGroup; } else { ddlTemplate.SelectedItem = group; CurrentTemplateGroup = group; } } }
private void refleshToolStripMenuItem_Click(object sender, EventArgs e) { var dlg = new SettingDialog(); var result = dlg.ShowDialog(); if (result == DialogResult.OK) { requestLoadIndex(); } }
public void OpenSetting() { SettingDialog dialog = new SettingDialog(); SettingDialogViewModel viewmodel = new SettingDialogViewModel(this); dialog.DataContext = viewmodel; dialog.Owner = this.Window; dialog.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner; dialog.ShowDialog(); this.TweetCommand.RaiseCanExecuteChanged(); this.WhisperCommand.RaiseCanExecuteChanged(); }
void btnMoreDetail_Click(object sender, System.EventArgs e) { TemplateGroup group = this.ddlTemplate.SelectedItem as TemplateGroup; if (group != null) { SettingDialog settingDialog = new SettingDialog(); settingDialog.HaveParmeter = true; SettingDialog.Display(group, this); BindCombox(); if (SettingDialog.CurrentGroup != null) { ddlTemplate.SelectedItem = SettingDialog.CurrentGroup; CurrentTemplateGroup = SettingDialog.CurrentGroup; InitDefaultItem(SettingDialog.CurrentGroup); } else { ddlTemplate.SelectedItem = group; CurrentTemplateGroup = group; InitDefaultItem(group); } } }
public void OnSetting() { SettingDialog.Popup(); }
void Button_prefs_ButtonAction(object sender, TouchEventArgs e) { SettingDialog.SetSize(this.RootWidget.Width, this.RootWidget.Height); SettingDialog.Show(); }
public MainWindowViewModel() { _scoreAccumulateUseCase = new ScoreAccumulateUseCase(); IsLoading = new ReactiveProperty <bool>(true); CurrentState = _scoreAccumulateUseCase.State .ToReadOnlyReactiveProperty(); ScoreCollection = _scoreAccumulateUseCase.ScoreCollection .ToReadOnlyReactiveCollection(); LatestScore = _scoreAccumulateUseCase.LatestScore .ToReactiveProperty(); ColumnVisibleSetting = _scoreAccumulateUseCase.ColumnVisibleSetting .ToReactiveProperty(); LoadedCommand = new ReactiveCommand(); LoadedCommand.Subscribe(async() => { await _scoreAccumulateUseCase.InitializeAsync(); IsLoading.Value = false; }); ClosedCommand = new ReactiveCommand(); ClosedCommand.Subscribe(() => { _scoreAccumulateUseCase.Dispose(); _scoreAccumulateUseCase = null; }); AccumulateStartCommand = _scoreAccumulateUseCase.State .Select(x => x == ScoreAccumulatingState.Stopped) .ToReactiveCommand(); AccumulateStartCommand.Subscribe(() => { _scoreAccumulateUseCase.StartToAccumulateScore(); }); AccumulateStopCommand = _scoreAccumulateUseCase.State .Select(x => x != ScoreAccumulatingState.Stopped) .ToReactiveCommand(); AccumulateStopCommand.Subscribe(() => { _scoreAccumulateUseCase.StopToAccumulateScore(); }); CopyAverageScoreCommand = new ReactiveCommand <object>(); CopyAverageScoreCommand.Subscribe(Observer.Create <object>(o => { var scores = ((System.Collections.IList)o).Cast <ScoreEntity>(); _scoreAccumulateUseCase.CopyAverageScoreToClipboard(scores); MessageQueue.Enqueue("クリップボードにコピーしました"); })); CopyEachScoreCommand = new ReactiveCommand <object>(); CopyEachScoreCommand.Subscribe(Observer.Create <object>(o => { var scores = ((System.Collections.IList)o).Cast <ScoreEntity>(); _scoreAccumulateUseCase.CopyEachScoreToClipboard(scores); MessageQueue.Enqueue("クリップボードにコピーしました"); })); SaveAsCsvCommand = new ReactiveCommand(); SaveAsCsvCommand.Subscribe(async() => { await _scoreAccumulateUseCase.SaveAsCsvAsync(); }); ShowSettingDialogCommand = new ReactiveCommand(); ShowSettingDialogCommand.Subscribe(async() => { // 設定をコピーしてダイアログを開く var appSetting = _scoreAccumulateUseCase.AppSetting.Value.Clone(); var viewModel = new SettingDialogViewModel(appSetting); var view = new SettingDialog() { DataContext = viewModel }; var result = await DialogHost.Show(view, "RootDialog"); // OKの時のみ設定を反映 if ((bool)result) { _scoreAccumulateUseCase.UpdateAppSetting(viewModel.AppSetting.Value); } }); OpenScreenShotFolderCommand = new ReactiveCommand(); OpenScreenShotFolderCommand.Subscribe(() => { _scoreAccumulateUseCase.OpenScreenShotFolder(); }); OpenLatestScoreFolderCommand = new ReactiveCommand(); OpenLatestScoreFolderCommand.Subscribe(() => { _scoreAccumulateUseCase.OpenLatestScoreFolder(); }); CreateFEZExecuteBatchCommand = new ReactiveCommand(); CreateFEZExecuteBatchCommand.Subscribe(() => { _scoreAccumulateUseCase.CreateFEZExecuteBatch(); }); }
private void click(object sender, MouseButtonEventArgs e) { var settingsDialog = new SettingDialog(settings); settingsDialog.ShowDialog(); }
public void Open() { SettingDialog.OpenControl(); }
private void _settingLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { SettingDialog form = new SettingDialog(this); form.Location = new Point(this.Location.X - 120, this.Location.Y + 50); form.ShowDialog(this); form.Dispose(); }
private void Button_Click_4(object sender, RoutedEventArgs e) { Dialogs.SettingDialog dialog = new SettingDialog(); dialog.Show(); }
/* * private void saveSize() * { * if (flashMovie!=null) * { * this.lastWidth = flashMovie.Width; * this.lastHeight = flashMovie.Height; * * settingObject.SWFWidth = flashMovie.Width; * settingObject.SWFHeight = flashMovie.Height; * } * } */ private void openSetting(object sender, EventArgs e) { SettingDialog.Show("PanelFlashViewer", ""); }
public override bool DoDialog() { bool result = false; GUISkin skin = GUI.skin; GUI.skin = GUISkinFinder.Instance.GetGUISkin(); imgList.Draw(); labelList.Draw(); if (inviteSetUp.Draw()) { InviteManager.Instance.RemoveAll(); SettingDialog settingDialog = (SettingDialog)DialogManager.Instance.Popup(DialogManager.DIALOG_INDEX.SETTING, exclusive: true); if (settingDialog != null) { settingDialog.InitDialog(); settingDialog.SetTab(5); } } if (allRejection.Draw()) { InviteManager.Instance.RemoveAll(); } if (exit.Draw() || btnClose.Draw()) { InviteManager.Instance.RemoveAll(); result = true; } List <Invite> listInvite = InviteManager.Instance.listInvite; scrollView.SetListCount(listInvite.Count); scrollView.BeginScroll(); for (int i = 0; i < listInvite.Count; i++) { Channel channel = ChannelManager.Instance.Get(listInvite[i].channelIndex); if (channel != null) { string text = string.Format(StringMgr.Instance.Get("INVITE_MESSAGE"), listInvite[i].invitorNickname, channel.Name, Room.Type2String(listInvite[i].mode)); inviteText.SetText(text); } scrollView.SetListPostion(i); scrollView.Draw(); if (go.isClick()) { Compass.Instance.SetDestination(Compass.DESTINATION_LEVEL.ROOM, listInvite[i].channelIndex, listInvite[i].roomNo, listInvite[i].pswd); InviteManager.Instance.RemoveAll(); result = true; } if (no.isClick()) { InviteManager.Instance.Remove(listInvite[i].invitorSeq); GlobalVars.Instance.clanSendJoinREQ = -1; } } scrollView.EndScroll(); if (!ContextMenuManager.Instance.IsPopup) { WindowUtil.EatEvent(); } GUI.skin = skin; return(result); }
/// <summary> /// Prepares an UI, like button, dialog, etc. /// </summary> private void createUI() { mSettingDialog = new SettingDialog(this); mSettingDialog.OnCaptureRequestUpdatedListener = this; findViewById(R.id.picture).OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); findViewById(R.id.setting).setOnClickListener(new OnClickListenerAnonymousInnerClassHelper2(this)); findViewById(R.id.info).OnClickListener = new OnClickListenerAnonymousInnerClassHelper3(this); mTextureView = (AutoFitTextureView) findViewById(R.id.texture); mFaceRectView = (FaceRectView) findViewById(R.id.face); // Set SurfaceTextureListener that handle life cycle of TextureView mTextureView.SurfaceTextureListener = new SurfaceTextureListenerAnonymousInnerClassHelper(this); }
public override void onPause() { State = CAMERA_STATE.CLOSING; if (mSettingDialog != null) { mSettingDialog.dismiss(); mSettingDialog = null; } OrientationListener = false; stopBackgroundThread(); closeCamera(); mSCamera = null; base.onPause(); }
void btnSignDetail_Click(object sender, System.EventArgs e) { SettingDialog settingDialog = new SettingDialog(); settingDialog.HaveParmeter = true; if (Current.Name != txtSignName.Text.Trim()) { if (DashboardItem._allSigns.Contains(txtSignName.Text.Trim()) || DashboardItem._allGroups.Contains(txtSignName.Text.Trim())) { MsgBox.Error(Resource.GetString(Resource.Strings.DashBoard_SaveSignRepeat)); return; } } Current.Name = txtSignName.Text.Trim(); Current.Type = Current.Template.Sign.SignType = (SignType)Enum.Parse(typeof(SignType), ddlSignType.SelectedItem.ToString()); if (txtHeight.Text.Trim() != "") { Current.Height = Current.Template.Sign.Height = Convert.ToInt32(txtHeight.Text); } if (txtWidth.Text.Trim() != "") { Current.Width = Current.Template.Sign.Width = Convert.ToInt32(txtWidth.Text); } if (btSignImage.Text.Trim() == "") { Current.Image = Current.Template.Sign.Image = ""; } else { Current.Image = Current.Template.Sign.Image = strImageFullName; } this.Hide(); SettingDialog.DisplaySign(Current, this); this.Show(); if (Current.DashboardType == DashboardType.Sign && Current.Controller.Connection.State == System.Communication.ConnectionState.Opened) { Current.Template.Sign.Height = Convert.ToInt32(txtHeight.Text); Current.Template.Sign.Width = Convert.ToInt32(txtWidth.Text); } else { txtHeight.Text = Current.Template.Sign.Height.ToString(); txtWidth.Text = Current.Template.Sign.Width.ToString(); Current.Height = 10000; Current.Width = 10000; LocalMessageBus.Send(this, new DataChangedMessage(PWDataType.Dashboard)); LocalMessageBus.Send(this, new ActiveChange(Current, false)); Current.Height = Current.Template.Sign.Height; Current.Width = Current.Template.Sign.Width; signOld.Height = Current.Template.Sign.Height; signOld.Width = Current.Template.Sign.Width; } btSignImage.Text = Current.Image = strImageFullName = Current.Template.Sign.Image; btnDeleteImage.Enabled = !string.IsNullOrEmpty(btSignImage.Text); ddlSignType.SelectedItem = Current.Template.Sign.SignType; //BindCombox(); //if (SettingDialog.CurrentGroup != null) //{ // ddlTemplate.SelectedItem = SettingDialog.CurrentGroup; // InitDefaultItem(SettingDialog.CurrentGroup); //} //else //{ // ddlTemplate.SelectedItem = group; // InitDefaultItem(group); //} //} }