Inheritance: System.EventArgs
コード例 #1
0
ファイル: AppraisalPlugin.cs プロジェクト: TNOCS/csTouch
        private void AppStateDrop(object sender, DropEventArgs e) {
            if (!IsRunning || !(e.EventArgs.Cursor.Data is Appraisal)) return;
            //var a = (Appraisal) e.EventArgs.Cursor.Data;
            var avm = AppState.Container.GetExportedValue<IAppraisal>();

            avm.Plugin = this;
            var fe = new FloatingElement {
                ModelInstance = avm,
                OpacityDragging = 0.5,
                OpacityNormal = 1.0,
                CanDrag = true,
                CanMove = true,
                CanRotate = true,
                CanScale = true,
                Background = Brushes.DarkOrange,
                //MaxSize = new Size(500, (500.0 / pf.Width) * pf.Height),                                 
                StartPosition = e.Pos,
                StartSize = new Size(200, 200),
                Width = 300,
                Height = 300,
                ShowsActivationEffects = false,
                RemoveOnEdge = true,
                Contained = true,
                CanFullScreen = true,
                Title = "Appraisal",
                Foreground = Brushes.White,
                DockingStyle = DockingStyles.None,
            };
            AppState.FloatingItems.Add(fe);
        }
コード例 #2
0
ファイル: TaskDragItem.xaml.cs プロジェクト: TNOCS/csTouch
 private void AppState_Drop(object sender, DropEventArgs e) {
     if (!(e.EventArgs.Cursor.Data is TaskDragItem)) return;
     AppState.RestoreVisibleState();
     Plugin.ActiveTask = null;
 }
コード例 #3
0
ファイル: TabItemViewModel.cs プロジェクト: TNOCS/csTouch
 /// <summary>
 /// The app state on drop.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="dropEventArgs">
 /// The drop event args.
 /// </param>
 private void AppStateOnDrop(object sender, DropEventArgs dropEventArgs)
 {
     this.EndEditMode(); // Icon dropped on map; handled by csDataServerPlugin
 }