コード例 #1
0
        private void ShowLastUpdated()
        {
            string message = String.Join("\r\n", DataManager.Instance().Messages);

            var opts = DialogControlOptions.SetTextBoxMessageOptions(message, false);


            var window = new Innouvous.Utils.DialogWindow.Windows.SimpleDialogWindow(opts);

            window.Title = "Status";

            bool top = TopMost;

            TopMost = false;

            window.ShowDialog();

            TopMost = top;
        }
コード例 #2
0
        public RunConfigsWindow()
        {
            InitializeComponent();

            List <ValueComponent> fields = new List <ValueComponent>()
            {
                PathSelectComponent.SaveFileComponent(
                    new ComponentArgs()
                {
                    DisplayName = "Data File Path",
                    FieldName   = DataPath,
                    InitialData = AppConfig.DataStoreFile,
                },
                    ext: PathSelectComponent.MakeExtension("SQLite DB", "*.sqlite"),
                    confirmOverwrite: false),
                PathSelectComponent.SelectFolderComponent(
                    new ComponentArgs()
                {
                    DisplayName = "Providers Path",
                    FieldName   = ProvidersPath,
                    InitialData = AppConfig.ProvidersPath
                }),
                new TextBoxComponent(
                    new ComponentArgs()
                {
                    DisplayName = "Update Frequency (min)",
                    FieldName   = UpdateFrequency,
                    InitialData = AppConfig.UpdateFrequency
                }, maxLength: 3),
                new TextBoxComponent(
                    new ComponentArgs()
                {
                    DisplayName = "Update Timeout (min)",
                    FieldName   = UpdateTimeOut,
                    InitialData = AppConfig.UpdateTimeout
                }, TextBoxComponent.FieldType.Integer, 3)
            };

            var options = DialogControlOptions.SetDataInputOptions(fields);

            DlgControl.SetupControl(options);
        }