Ejemplo n.º 1
0
 public TreeNodeMouseClickEventParams()
 {
     mTreeView = null;
     mContain = null;
     mX = -1;
     mY = -1;
 }
Ejemplo n.º 2
0
 public MenuStrip()
 {
     mMenuItems = new List<MenuItem>();
     mDockStyle = @"None";
     mMenuStrip = null;
     mContain = null;
 }
Ejemplo n.º 3
0
        public override void _runCommand()
        {
            IContain contain_ = this._getOwner() as IContain;
            IForm    form_    = contain_._contain() as IForm;

            form_._runClose();
        }
Ejemplo n.º 4
0
 public ToolPanel()
 {
     mToolStrips = new List<ToolStrip>();
     mToolStripPanel = null;
     mDockStyle = @"None";
     mContain = null;
 }
Ejemplo n.º 5
0
 private static IMore <IEnumerable <KeyValuePair <TKey, TValue> > > AddKeyMatcher <TKey, TValue>(
     IContain <IEnumerable <KeyValuePair <TKey, TValue> > > continuation,
     TKey key,
     Func <string> customMessage)
 {
     continuation.SetMetadata(CONTINUATION_KEY, key);
     return(continuation.AddMatcher(collection =>
     {
         var passed = collection != null &&
                      TryFindValueForKey(collection, key, out var _);
         return new MatcherResult(
             passed,
             FinalMessageFor(
                 () => new[]
         {
             "Expected",
             collection.LimitedPrint(),
             $"{passed.AsNot()}to contain key",
             key?.Stringify()
         },
                 customMessage
                 )
             );
     }));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Tests if the provided collection contains the required key.
 /// Upcast from sbyte to long for convenience
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="key">Key to look for</param>
 /// <typeparam name="TKey">Type of the dictionary keys</typeparam>
 public static IDictionaryValueContinuation <long> Key <TKey>(
     this IContain <IEnumerable <KeyValuePair <TKey, sbyte> > > continuation,
     TKey key
     )
 {
     return(continuation.Key(key, NULL_STRING));
 }
Ejemplo n.º 7
0
 public RadioButton()
 {
     mRadioButton = null;
     mPoint = new Point2I();
     mSize = new Size2I();
     mContain = null;
     mText = null;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Tests if the provided collection contains the required key.
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="key">Key to look for</param>
 /// <param name="customMessage">Custom message to add to failure messages</param>
 /// <typeparam name="TKey">Type of the dictionary keys</typeparam>
 /// <typeparam name="TValue">Type of the dictionary values</typeparam>
 public static IDictionaryValueContinuation <TValue> Key <TKey, TValue>(
     this IContain <IEnumerable <KeyValuePair <TKey, TValue> > > continuation,
     TKey key,
     string customMessage
     )
 {
     return(continuation.Key(key, () => customMessage));
 }
Ejemplo n.º 9
0
        public override void _runCommand()
        {
            IContain         contain_          = this._getOwner() as IContain;
            ISideBar         sideBar_          = contain_._childControl("sideBar") as ISideBar;
            SideBarSingleton sideBarSingleton_ = __singleton <SideBarSingleton> ._instance();

            sideBarSingleton_._setSideBar(sideBar_);
        }
Ejemplo n.º 10
0
 public ToolStrip()
 {
     mMemberStreams = new List<MemberStream>();
     mToolStripItemAdapts = new List<ToolStripItemAdapt>();
     mDockStyle = @"None";
     mToolStrip = null;
     mVisible = false;
     mContain = null;
 }
Ejemplo n.º 11
0
 public DockPad()
 {
     mDockStyle = @"None";
     mDockFrame = null;
     mCaption = null;
     mContain = null;
     mIcon = null;
     mPadName = null;
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Starts continuation to match any items in the source collection
 /// </summary>
 /// <param name="contain">Continuation to continue from</param>
 /// <typeparam name="T">Type of items in collection</typeparam>
 /// <returns></returns>
 public static ICountMatchContinuation <IEnumerable <T> > Any <T>(
     this IContain <IEnumerable <T> > contain
     )
 {
     return(new CountMatchContinuation <IEnumerable <T> >(
                contain,
                CountMatchMethods.Any,
                0
                ));
 }
Ejemplo n.º 13
0
 public RadioButtonEx()
 {
     mCheckCommand = null;
     mCheckCmd = null;
     mRadioButton = null;
     mPoint = new Point2I();
     mSize = new Size2I();
     mContain = null;
     mText = null;
 }
Ejemplo n.º 14
0
 public Button()
 {
     mPoint = new Point2I();
     mSize = new Size2I();
     mCommand = null;
     mOnClick = null;
     mButton = null;
     mContain = null;
     mText = null;
     mEnable = true;
 }
Ejemplo n.º 15
0
 public ComboBox()
 {
     mComboBoxItems = new List<ComboBoxItem>();
     mCommands = new List<ICommand>();
     m_tSelectTextSlot = null;
     mPoint = new Point2I();
     mSize = new Size2I();
     mComboBox = null;
     mContain = null;
     mEnable = true;
 }
Ejemplo n.º 16
0
        public override void _runCommand()
        {
            IContain      contain_       = this._getOwner() as IContain;
            ITreeView     treeView_      = contain_._childControl("treeView1") as ITreeView;
            NewProjectUrl newProjectUrl_ = new NewProjectUrl();
            string        newUrl_        = @"rid://notepad.implement.newProjectUrl";

            newProjectUrl_._runLoad(newUrl_);
            newProjectUrl_._runInit();
            newProjectUrl_._addTreeNode(treeView_);
        }
Ejemplo n.º 17
0
 public SideBar()
 {
     mSideTabs = new List<SideTab>();
     mSideBarControl = null;
     mDockStyle = @"None";
     mSideBarUrl = null;
     mActiveTab = null;
     mInitCommand = null;
     mInitCmd = null;
     mContain = null;
 }
Ejemplo n.º 18
0
 public MenuItem()
 {
     mMemberStreams = new List<MemberStream>();
     mMenuItems = new List<MenuItem>();
     mToolStripMenuItem = null;
     mCommand = null;
     mCmdStr = null;
     mContain = null;
     mText = null;
     mIcon = null;
 }
Ejemplo n.º 19
0
 /// <summary>
 /// Tests if the provided collection contains the required key.
 /// Upcast from float to double for convenience
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="key">Key to look for</param>
 /// <param name="customMessageGenerator">Generates a custom message to add to failure messages</param>
 /// <typeparam name="TKey">Type of the dictionary keys</typeparam>
 public static IDictionaryValueContinuation <double> Key <TKey>(
     this IContain <IEnumerable <KeyValuePair <TKey, float> > > continuation,
     TKey key,
     Func <string> customMessageGenerator
     )
 {
     AddKeyMatcher(continuation, key, customMessageGenerator);
     return(CreateValueContinuationFor <TKey, float, double>(
                continuation,
                key
                ));
 }
Ejemplo n.º 20
0
 /// <summary>
 /// Match exactly N elements with following matchers
 /// </summary>
 /// <param name="contain">contain continuation</param>
 /// <param name="howMany">how many items to match</param>
 /// <typeparam name="T">Type of item to match</typeparam>
 /// <returns>continuation be used: .Equal.To()</returns>
 public static ICountMatchContinuation <IEnumerable <T> > Exactly <T>(
     this IContain <IEnumerable <T> > contain,
     int howMany
     )
 {
     CheckContain(contain);
     return(new CountMatchContinuation <IEnumerable <T> >(
                contain,
                CountMatchMethods.Exactly,
                howMany
                ));
 }
Ejemplo n.º 21
0
 public static void Child(
     this IContain <Container> contain,
     Sub sub)
 {
     contain.AddMatcher(actual =>
     {
         var passed = (actual?.Subs ?? new Sub[0])
                      .Any(c => c.Name == sub.Name);
         return(new MatcherResult(
                    passed,
                    $"Expected {actual.Stringify()} {passed.AsNot()}to contain sub {sub.Name}"));
     });
 }
Ejemplo n.º 22
0
 public TreeView()
 {
     mShowRootLines = false;
     mDockStyle = @"None";
     mInitCommand = null;
     mInitCmd = null;
     mTreeView = null;
     mContain = null;
     mSize = null;
     mLoadCommand = null;
     mLoadCmd = null;
     mTreeNodes = new List<ITreeNode>();
 }
Ejemplo n.º 23
0
 public ListView()
 {
     mDockStyle = @"None";
     mViewStyle = "List";
     mContain = null;
     mInitCommand = null;
     mInitCmd = null;
     mLoadCommand = null;
     mLoadCmd = null;
     mItemActivateCommand = null;
     mItemActivateCmd = null;
     mSelectedIndexChangedCommand = null;
     mSelectedIndexChangedCmd = null;
     mSize = null;
 }
Ejemplo n.º 24
0
 public static void Shape(
     this IContain <Rectangle> contain,
     Rectangle other
     )
 {
     contain.AddMatcher(actual =>
     {
         var passed = actual.Left <= other.Left &&
                      actual.Right >= other.Right &&
                      actual.Top <= other.Top &&
                      actual.Bottom >= other.Bottom;
         return(new MatcherResult(
                    passed,
                    () => $"Expected {actual.Stringify()} {passed.AsNot()}to contain {other.Stringify()}"));
     });
 }
Ejemplo n.º 25
0
 public static void Only(
     this IContain <MemoryStream> contain,
     byte[] data)
 {
     contain.AddMatcher(actual =>
     {
         var actualData   = actual.ReadAllBytes();
         var lengthsMatch = actualData.Length == data.Length;
         var passed       = lengthsMatch &&
                            actualData.DeepEquals(data);
         return(new MatcherResult(
                    passed,
                    () => lengthsMatch
                       ? "Stream data matches expected length, but not expected content"
                       : "Stream data does not match expected content at all"
                    ));
     });
 }
Ejemplo n.º 26
0
        public override void _runCommand()
        {
            IContain contain_ = this._getOwner() as IContain;
            IForm    form_    = contain_._contain() as IForm;

            ITextBox fileUrlTextBox_  = form_._childControl("panel1/fileUrl") as ITextBox;
            ITextBox fileNameTextBox_ = form_._childControl("panel1/fileName") as ITextBox;
            string   fileUrl_         = fileUrlTextBox_._getText();
            string   fileName_        = fileNameTextBox_._getText();

            if (null == fileUrl_ || "" == fileUrl_)
            {
                return;
            }
            if (null == fileName_ || "" == fileName_)
            {
                return;
            }
            IListView         listView_  = form_._childControl("panel2/listView1") as IListView;
            IList <IListItem> listItems_ = listView_._selectedItems();

            if (listItems_.Count <= 0)
            {
                return;
            }

            NewProjectNodeCommand newProjectNodeCommand_ = listItems_[0] as NewProjectNodeCommand;
            string            commandUrl_        = newProjectNodeCommand_._getCommandUrl();
            NewProjectArg     newProjectArg_     = new NewProjectArg(fileUrl_, fileName_);
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            ICommand command_ = platformSingleton_._findInterface <ICommand>(commandUrl_);

            command_._setOwner(newProjectArg_);
            command_._runCommand();
            form_._runClose();
        }
Ejemplo n.º 27
0
 public virtual void _setContain(IContain nContain)
 {
 }
Ejemplo n.º 28
0
 public void _setContain(IContain nContain)
 {
     mContain = nContain;
 }
Ejemplo n.º 29
0
 public ToolStripItemAdapt()
 {
     mToolStripItem = null;
     mContain = null;
     mType = null;
 }
Ejemplo n.º 30
0
 public MultiControl()
 {
     mControlName = null;
     mContain = null;
 }
Ejemplo n.º 31
0
 public override void _setContain(IContain nContain)
 {
     mContain = nContain;
     base._setContain(nContain);
 }
Ejemplo n.º 32
0
 public Control()
 {
     mControlName = null;
     mContain = null;
 }
Ejemplo n.º 33
0
 public RadioButtonCheckedChangedArg()
 {
     mContain = null;
     mChecked = false;
 }
Ejemplo n.º 34
0
 public Widgets()
 {
     mWidgets = new List<IWidget>();
     mContain = null;
     mName = null;
 }
Ejemplo n.º 35
0
 public ToolStripItem()
 {
     mContain = null;
 }
Ejemplo n.º 36
0
 public override void _setContain(IContain nContain)
 {
     mContain = nContain;
 }