コード例 #1
0
 public Alert(string title, string message, FullWindow parentWindow, int backgroundColour)
     : base(parentWindow.Width / 2 - 14, 6, 28, 5, parentWindow)
 {
     Title     = title;
     BackColor = backgroundColour;
     Create(message);
 }
コード例 #2
0
 public Confirm(string message, Action yes, Action no, int backColor, FullWindow parentWindow)
     : base(parentWindow.Width / 2 - 14, 6, 28, 5, parentWindow)
 {
     OnYes     = yes ?? (() => { });
     OnNo      = no ?? (() => { });
     BackColor = backColor;
     Create(message);
 }
コード例 #3
0
 public SaveDialog(BasicOne basicOne, string title, string name, FullWindow parentWindow)
     : base(parentWindow.Width / 2 - 15, 6, 30, 5, parentWindow)
 {
     BasicOne    = basicOne;
     CurrentName = name ?? "new.basic";
     Height      = 10;
     Create(title);
 }
コード例 #4
0
 public LoadDialog(string title, FullWindow parentWindow, bool traverseDirectories, StorageFolder storage = null)
     : base(parentWindow.Width / 2 - 15, 6, 30, 5, parentWindow)
 {
     _storage             = storage ?? BasicOne.LocalStorageFolder;
     _traverseDirectories = traverseDirectories;
     Height = 10;
     Create(title);
 }
コード例 #5
0
 public Confirm(string title, string message, Action yes, Action no, FullWindow parentWindow)
     : base(parentWindow.Width / 2 - 14, 6, 28, 5, parentWindow)
 {
     OnYes     = yes ?? (() => { });
     OnNo      = no ?? (() => { });
     BackColor = Terminal.YELLOW;
     Title     = title;
     Create(message);
 }
コード例 #6
0
        public EditorWindow(BasicOne basicOne, string name, IStorageFile code, int postionX, int postionY, int width,
                            int height, FullWindow parentWindow)
            : base(postionX, postionY, width, height, parentWindow)
        {
            Saved     = true;
            CodeFile  = code;
            BasicOne  = basicOne;
            Name      = string.IsNullOrEmpty(name) ? "new.basic" : name;
            BackColor = Terminal.BLUE;

            CursorX = Indent;
            CursorY = 1;
        }
コード例 #7
0
 public Alert(string message, FullWindow parentWindow)
     : base(parentWindow.Width / 2 - 14, 6, 28, 5, parentWindow)
 {
     Create(message);
 }